title: Webpack: What is the difference between "all" and "initial" options in optimization.splitChunks.chunks
body: <p>I'm looking for a clear explanation of the difference between these two options in webpack. I've read the description <a href="https://webpack.js.org/plugins/split-chunks-plugin/" rel="noreferrer">here</a> but the difference is not clear. Quoting the description:</p>
  
  <blockquote>
    <p>Setting the optimization.splitChunks.chunks option to "all" initial chunks will get affected by it (even the ones not imported dynamically). This way chunks can even be shared between entry points and on-demand loading.</p>
  </blockquote>