-
Notifications
You must be signed in to change notification settings - Fork 12k
Ability to configure minChunks for common chunk #8458
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
Comments
I just did a fairly lengthy refactor to try to take advantage of lazy loading, but was thrown for a loop when I saw my common chunk multiply 6x. I ended up disabling it for now... Can anyone speak to whether or not this is being considered? |
The common chunk functionality is significantly more advanced in the latest version of the CLI (6.x+) and will no longer create a massive single common chunk. As such, this type of configurability is no longer relevant. |
There's no official documentation but here is a comment I wrote providing some background on the new behavior: #10364 (comment) |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Versions.
Desired functionality.
I would like to configure minChunks parameter for common chunk e.g. in
angular-cli.json
file, without having to eject the angular webpack.config.js file.Mention any other details that might be useful.
For example if two of my lazy-loaded modules have some common huge dependency it'll end up in common chunk and will be loaded with all lazy-loaded modules in application. If I could set minChunks to 3, common chunk will be much smaller.
The text was updated successfully, but these errors were encountered: