-
-
Notifications
You must be signed in to change notification settings - Fork 376
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for multi-config compilation #615
Comments
Hey @IIIristraM 馃憢, |
This example project helped me: https://github.com/gregberge/loadable-components/blob/master/examples/server-side-rendering/src/server/main.js |
As far as I understand, now the only possible solution is to create ChunkExtractor for each stats file, which means that for N files application has to be rendered N times to collect chunks from all builds. |
You can create multiple chunk extractors on the server side but it might not work that way on the client side, where any code is executed inside some particular webpack "instance". If you want to "mix" different builds/apps together - you need module federation. |
@theKashey it works with node target, but currently it's impossible to predict some assets on the client-side. Not a big issue but still annoying. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
馃挰 Questions and Help
I'm using a monorepo approach, where client consists of multiple packages with their own webpack configurations, but all bundles dynamically extends single application, which is hosted on nodejs server.
So each package produce its own loadable-stats.json, and for dev build I'm using webpack-dev-middleware with multicompiler.
I found no clues in documentation on whether any conventional way to extract chunks in such configuration, so I would appreciate any advice on how to make loadable-components work for multiple stats files.
The text was updated successfully, but these errors were encountered: