Cognizant-CDE-Australia / generator-confit

Build-tool generator for current and future web.
https://odecee.github.io/generator-confit
Other
29 stars 3 forks source link

Make Webpack config more flexible #101

Closed uglow closed 7 years ago

uglow commented 7 years ago

The current design of the webpack common configuration file is that it is exported as an object. This means that customising the config is possible only after require()ing it.

A better approach is to inject some options into the common configuration via a function, which still returns an object. This will remove more boiler-plate code from the PROD and DEV configs and make them simpler.