title: Webpack, new chunk is loading in with wrong path
body: <p>I am trying to chunk my app  - attempting to follow webpacks guide on how-to (<a href="https://webpack.github.io/docs/code-splitting.html" rel="noreferrer">https://webpack.github.io/docs/code-splitting.html</a>). So I have a seperate chunk set up for my app, I can see that webpack is generating <code>1.bundle.js</code> in my build folder, however it is pasting it onto my <code>index.html</code> with an incorrect path, and in my console I see the fetch error for the <code>1.bundle.js</code> file.</p>
  
  <p>So my webpack config looks like so (im just using the webpack:dev for now):</p>
  
  <pre><code> return {
      dev: {
          entry: {
              index: './client/app.jsx'
          },
          output: {
              path: path.join(__dirname, '..', '..', 'dist', 'client'),
              publicPath: "/dist/client/",
              filename: 'bundle.js'
          },
          module: {
              loaders: [{
                  test: /\.jsx?$/,
                  exclude: /node_modules/,
                  loader: 'babel-loader',
                  query: {
                      presets: ['es2015']
                  }
              }, {
                  test: /\.json$/,
                  loader: 'json-loader'
              }]
          },
          resolve: {
              extensions: ['', '.js', '.jsx']
          },
          resolveLoader: {
              fallback: [path.join(__dirname, 'node_modules')]
          },
          plugins: [
              new webpack.DefinePlugin({
                  "process.env": {
                      "NODE_ENV": JSON.stringify("dev")
                  }
              })
          ]
      },
  </code></pre>
  
  <p>and in my index.html I manually add <code>&lt;script src="bundle.js"&gt;&lt;/script&gt;</code> and that has been working great. It looks like when this builds now, webpack is applying its own script tag on my index like so </p>
  
  <pre><code>  &lt;script type="text/javascript" charset="utf-8" async="" src="/dist/client/1.bundle.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>However this path is incorrect, it should just be <code>src="1.bundle.js"</code>. I have tried tweaking the path and publicPath but nothing seems to work. Is there a way to have webpack add the correct path? Thanks!</p>