Skip to content

Problems with the multi-compiler #17

@justin808

Description

@justin808

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions