Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No separate development/production webpack configurations for DOM delegate #4

Closed
kass-kass opened this issue Oct 6, 2022 · 4 comments · Fixed by #25
Closed

No separate development/production webpack configurations for DOM delegate #4

kass-kass opened this issue Oct 6, 2022 · 4 comments · Fixed by #25
Assignees
Labels
enhancement New feature or request

Comments

@kass-kass
Copy link
Contributor

Dear maintainers,

From my limited web development knowledge, I understand it's common to have separate development/production configurations for webpack, as described in their official documentation here.

This is usually done with a common webpack.common.js for both configurations, and specific configuration options split between webpack.prod.js and webpack.dev.js.

In the source of the DOM delegate, there is currently only one configuration, which limits some things. For example, it uses devtool: 'inline-source-map', which is helpful during development, but generates large pages. For a a production website, it would best to disable that.

Is there any specific reasons split configurations aren't used for the DOM delegate? If not, I can spend some time to make them and update the build scripts to have dev run on npm start, and prod on npm build.

Wanted to ask just in case, to avoid doing it and having the pull request rejected.

Let me know and thank you :)

@lukehb
Copy link
Collaborator

lukehb commented Mar 9, 2023

@kass-kass
Copy link
Contributor Author

@lukehb Sounds good, will make the changes and open a PR during the next week.

@dan-tw
Copy link
Contributor

dan-tw commented Mar 27, 2023

@kass-kass Is this something you're still interested in doing?

@adrianZahra
Copy link
Contributor

This issue has been created here https://github.com/TensorWorks/SPS-Issues/issues/227 and is being work on as we speak.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
4 participants