webpack / webpack.js.org

Repository for webpack documentation and more!
https://webpack.js.org
Creative Commons Attribution 4.0 International
2.21k stars 3.31k forks source link

`another-module.js` --> Entry point? #2237

Open Legends opened 6 years ago

Legends commented 6 years ago

Section: Guides - Code Splitting - Entry-Points

AFAIK, in webpack 4 only real entry points of the application are entry points. If another-module.js is another entry-point it should be renamed to another-entry-point.js, otherwise one could think that any module could be added here. Or should this section show a way of how not to do code splitting? Because it sounds like a viable way to split your code, by adding any module to the entry configuration section?!

This should be made more clear imo.

Legends commented 6 years ago

Also:

The CommonsChunkPlugin is also used to split vendor modules from core application code using explicit vendor chunks.

Still viable in wp4?