title: Error: webpack.optimize.CommonsChunkPlugin has been removed, please use config.optimization.splitChunks instead
body: <p>I am getting this error</p>
  <blockquote>
  <p>Error: <code>webpack.optimize.CommonsChunkPlugin</code> has been removed, please use <code>config.optimization.splitChunks</code> instead.</p>
  </blockquote>
  <pre><code>new webpack.optimize.CommonsChunkPlugin({
    filename: DEBUG ? 'bundle.js' : 'bundle.min.js',
    name: &quot;vendor&quot;
  })
  </code></pre>