title: Error: Loading chunk 0 failed. - webpack tries to load 0.js
body: <p>I have following project structure:</p>
  
  <pre><code>|-mainFile.js
  |-scripts -
            |-Library1.js
            |-Library2.js
  </code></pre>
  
  <p>Library files use requirejs <code>define([], function() {})</code> syntax.</p>
  
  <p>I've therefore put this into the webpack.config.js:</p>
  
  <pre><code>module.exports = {
      resolve: {
          modules: [
              path.resolve(__dirname, 'scripts'),
              // The normal path
              "node_modules"
          ]
      },
      /** ... **/
  }
  </code></pre>
  
  <p>I then do this in <code>mainFile.js</code> which is entry point for webpack:</p>
  
  <pre><code>require(["Library1", "Library2"], function(Library1, Library2) { ... });
  </code></pre>
  
  <p>And I get this error:</p>
  
  <pre><code>GET http://localhost:3000/0.js [HTTP/1.1 404 Not Found 3ms]
  Error: Loading chunk 0 failed.
  Stack trace:
  onScriptComplete@http://localhost:3000/player/webpack_build.js:100:24
                       webpack_build.js:146:52
  The resource from “http://localhost:3000/0.js” was blocked due to MIME type mismatch (X-Content-Type-Options: nosniff).[Learn More]
  test_file.html Error: Loading chunk 0 failed.
  </code></pre>
  
  <p>So webpack tries to load some <code>0.js</code> file. What's that supposed to be?</p>