You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Doc Request: Strategies for structuring configuration #8475
Request: Expand the configuration section of the docs to include a few concrete examples/approaches/strategies/practical tips for how to structure a complex webpack configuration well.
The configuration section lists a few good starting tips and also says:
The most important part to take away from this document is that there are many different ways to format and style your webpack configuration. The key is to stick with something consistent that you and your team can understand and maintain.
For less complex configurations I feel this is doable, but for complex setups I find this hard to achieve in practice.
If it's helpful, there are two tradeoffs I can think of that I especially struggle with:
Having several targets (server, modern browsers, older browsers) as well as several modes (dev, test, prod) creates a kind of multi-dimensional configuration that no matter how I try to cut it, it's hard to understand and maintain.
Being able to easily review and understand the entire configuration vs splitting it up into smaller maintainable pieces, I never quite seem to find a balance.
All projects are different and complex configurations are usually complex because the requirements are, so I'm not sure this is easily addressable in the docs, but a few more pointers wouldn't hurt. :)
Thanks for the already awesome docs and all your hard work! 👏 👏 👏
Activity
montogeek commentedon Dec 6, 2018
@webpack-bot move to webpack/webpack.js.org
webpack-bot commentedon Dec 6, 2018
I've moved it to webpack/webpack.js.org.