markshapiro / webpack-merge-and-include-globally

Merge multiple files (js, css..) and include by running them "as is". Supports minify by custom transform and wildcard paths.
MIT License
102 stars 27 forks source link

Webpack 5: Option "chunks" has no effect #79

Closed emkayy closed 2 years ago

emkayy commented 2 years ago

Hi,

since migrating to webpack 5, the plugin always runs, also for entry points that are not defined in chunks.

Would be great if you could could support this feature in webpack 5 as well, @markshapiro

Event better would be some kind of watch mode so it runs only when files actually changed.

Thanks a lot for your effort!

emkayy commented 2 years ago

Seems to be a webpack issue rather than a plug-in issue. Only with JS files webpack recognizes the correct entry point (chunk). Other files trigger all entry points.