Describe the solution you'd like
Let's rework how development and production configs are laid out.

Hopefully all of this is clear and I added them in checkbox format. These ideas I've created based on positive feedback I've received from my workshops and talks.
Since all this code is JavaScript i would understand that there are many opinions on how configs are formatted but I would like to go this direction because I believe it is just easier to maintain this way.
If you look at my repo: https://github.com/TheLarkInn/webpack-workshop-2018/tree/feature/19-sm-css-code-split
This shows you a fully fleshed out example with many features, integrations, etc and hopefully we can follow this style (even presets which I can document in a separate issue).
Describe the solution you'd like
Let's rework how development and production configs are laid out.
webpack.config.jswebpack-mergenot Object.assign--env.mode development--env.mode productionto determine whether or not production or development modes are used.webpack.config.jsfile, or the common config.devand production script is calledprod.webpackis generated so users can runnpm run webpack. This will be used inside ofdevandprodscripts for composition sakes.Hopefully all of this is clear and I added them in checkbox format. These ideas I've created based on positive feedback I've received from my workshops and talks.
Since all this code is JavaScript i would understand that there are many opinions on how configs are formatted but I would like to go this direction because I believe it is just easier to maintain this way.
If you look at my repo: https://github.com/TheLarkInn/webpack-workshop-2018/tree/feature/19-sm-css-code-split
This shows you a fully fleshed out example with many features, integrations, etc and hopefully we can follow this style (even presets which I can document in a separate issue).