Do you want to request a feature or report a bug?
What is the current behavior?
configuration.optimization.splitChunks.chunks should be one of these: "initial" | "async" | "all"
It would be handy to be able to specify particular entry points here.
If this is a feature request, what is motivation or use case for changing the behavior?
In Storybook, we have two entry points: “manager” mostly contains our library code, and “preview” contains the user code, and is loaded in an iframe. So, for purposes of long-term caching it only makes sense to split vendor chunk in “preview” entry point. Plus, there’s currently no easy way to use
HtmlWebpackPlugin with multiple entry points, each of which has split chunks, see jantimon/html-webpack-plugin#882