title: How can I disable chunk(code splitting) with webpack4?
body: <p>I created react project with : yarn create react-app. I'm using webpack 4.29.6, react 16.8.6.</p>
  
  <p>I want to disable code splitting because I want just one 'main.js' file in build/static/js folder. (I already removed hash from their names.)</p>
  
  <p>I tried:  </p>
  
  <pre><code>new webpack.optimize.LimitChunkCountPlugin({
      maxChunks: 1
    }),
  </code></pre>
  
  <p>and</p>
  
  <pre><code>      splitChunks: {
          chunks: 'all',
          name: false,
          cacheGroups: {
            default:false
          }
        }
  </code></pre>
  
  <p>but these solutions give me these files:</p>
  
  <pre><code>build
    /static
     /js
     -2.chunk.js
     -2.chunk.js.map
     -main.chunk.js
     -main.chunk.js.map
     -runtime~main.js
     -runtime~main.js.map
  
  </code></pre>
  
  <p>I think runtime~main.js file and .map file are just okay, but I want the exact 'main.js' file without chunk, without 2.chunk.js. How can I disable default code splitting of webpack 4?</p>