-
Notifications
You must be signed in to change notification settings - Fork 518
In React Redux template, move packages to devDevendencies where possible #747
Comments
Previously, the server-side prerendering used Webpack and all the other packages there at runtime. So it wouldn't have worked to put them into However, a couple of months ago, we changed to a simpler and more robust system whereby the server-side prerendering bundle was generated at build time, and all those Node packages aren't required in production. So, we could (and should) now streamline this by moving packages to |
Awesome, and thanks a lot to all involved for this template. There is no way I'd have got to such a complex config that fits dotnet without it. A lot of moving parts to integrate with all this node ecosystem, but its really coming together now. |
Just for clarification: One should move as many dependencies such that dotnet runs in development mode with already compiled bundles without errors? |
Everything's in |
I'm getting up to speed with React and everywhere else I've looked at templates/setup there has been usage of devDependencies in packages.json. Would you mind explaining what the reasoning for not using them is in this template?
p.s. was also amused to see a dependency on node-noop.
https://news.ycombinator.com/item?id=13588428
https://github.com/euank/node-noop
Reviews
"Everything that is wrong with the Node ecosystem." — An enlightened Reddit user.
The text was updated successfully, but these errors were encountered: