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

Use optimization.splitChunks instead of separate entry points (Webpack 4) #152

Open
stilettk opened this issue Feb 27, 2019 · 0 comments
Open

Comments

@stilettk
Copy link

Currently the vendors and polyfills bundles are created as separate entry points. However, in Webpack 4 this is not acceptable. From the documentation:

In webpack version < 4 it was common to add vendors as separate entrypoint to compile it as separate file (in combination with the CommonsChunkPlugin). This is discouraged in webpack 4. Instead the optimization.splitChunks option takes care of separating vendors and app modules and creating a separate file. Do not create an entry for vendors or other stuff which is not the starting point of execution.

@stilettk stilettk changed the title Stop splitting bundles as separate entry points in Webpack 4 Use optimization.splitChunks instead of separate entry points (Webpack 4) Feb 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants