Can I make it easy to edit a config file after a webpack build? -


i'm trying make easy change configuration of application when deploying it. build webpack , exclude conf.js (where set paths, providers, etc) uglify plugin. leaves me pretty clean output file that's relatively easy server admin edit. problem file still has webpack-specific definitions (module references, etc) subject change, it's not possible overwrite generated config file server-specific version.

what's best practice here? want able give template of deploy-time variables admin , let them set custom values, put somewhere in among build output , have load automatically. (for business reasons, it's not practical know target's complete config when running webpack build!)


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -