-
Notifications
You must be signed in to change notification settings - Fork 24
Description
I posted this to gitter:
Seems that one can't build multiple configs that depend on different ENV values.
Regarding the multi-compiler
I'm looking at issues for building client and server bundles for React web apps for https://github.com/shakacode/react_on_rails and https://github.com/rails/webpacker
Are there any advantages to https://github.com/webpack/webpack/tree/master/examples/multi-compiler vs concurrently running multiple webpack processes
Any gotchas? Can the configurations be totally different?
What are the limitations, besides possible collisions in output files?
Could there be any subtle collisions in temp files? caches?
I did run into one limitation with the webpack-conditional-loader in that it depends on env values (and not the DefinePlugin) and it's pretty clear that the concurrent nature of the multi-compiler conflicts with that.