Webpack-cli: [Feature]: Init command's splitChunks caching group generation per provided entry

Created on 14 Apr 2018  路  13Comments  路  Source: webpack/webpack-cli

Do you want to request a feature or report a bug?

feature

What is the current behavior?
it doesnt output caching group per entry provided

If the current behavior is a bug, please provide the steps to reproduce.
after #356 is merged
use webpack-cli init and provide multiple entries
Observe splitChunks plugin declaration doesnt add caching group per entry

What is the expected behavior?
splitChunks caching groups added per entry

If this is a feature request, what is motivation or use case for changing the behavior?
TBD @ev1stensberg

Please paste the results of webpack-cli info here, and mention other relevant information such as programming language.

NOTE
When trying to initally set up regexp generation i bumped into a case where user might provide two entries from within same directory when doing simple config generations e.g. for entries user types:
homepage,blog

and for entry paths:

./src/homepage
./src/blog

In this case regexp for catching files in splitChunks will be the same for both entries if entries are

./src/homepage.js
./src/blog.js

and not directories with a nested index.js file.

./src/homepage/index.js
./src/blog/index.js
Init Medium enhancement

All 13 comments

We're ready to proceed with this one now

Is this still a relevant feature? If so, I'd be happy to take it on now with a bit of clarification. Is the intention to define a cacheGroups entry for each configured entry point? Should this behavior be opt-in, or should it be the default when initializing a new project?

yes, @EugeneHlushko could you elaborate some more? 馃摝 It should be default when initializing a new project with multiple entries, yes.

Thanks for the info, I'll pick this up. Feel free to assign it to me to keep it on my radar.

Yeah its pretty much relevant. As @ev1stensberg we think that it should be default for multiple entries. The catch here is described in the issue description, if entries are .js files in one dir, everything will fall under the same caching group, needs a thought.

@dhruvdutt maybe you could pick this one up?

Sure! Would try to finish over the weekend.

This issue had no activity for at least half a year.

It's subject to automatic issue closing if there is no activity in the next 15 days.

This issue had no activity for at least half a year.

It's subject to automatic issue closing if there is no activity in the next 15 days.

bump

Circling back on this; @evenstensberg and @ematipico, is this still relevant? I have bandwidth to take this on now if so.

This issue had no activity for at least half a year.

It's subject to automatic issue closing if there is no activity in the next 15 days.

Issue was closed because of inactivity.

If you think this is still a valid issue, please file a new issue with additional information.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

billyjanitsch picture billyjanitsch  路  3Comments

RobotnickIsrael picture RobotnickIsrael  路  5Comments

logo749 picture logo749  路  4Comments

anshumanv picture anshumanv  路  3Comments

sumukhah picture sumukhah  路  3Comments