Webpack: What is the difference between “all” and “initial” options in optimization.splitChunks.chunks
Trying for the simplest explanation. This is the file that will be transpiled and bundled: //app.js import “my-static-module”; if(some_condition_is_true){ import (“my-dynamic-module”) } console.log(“My app is running”) Now see how different optimization types will treat it. async (default): Two files will be created. bundle.js (includes app.js + my-static-module) chunk.js (includes my-dynamic-module only) initial: Three files will … Read more