Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with the multi-compiler #17

Open
justin808 opened this issue Feb 20, 2020 · 0 comments
Open

Problems with the multi-compiler #17

justin808 opened this issue Feb 20, 2020 · 0 comments

Comments

@justin808
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant