title: html-webpack-plugin and webpack 2: no starting slash '/'
body: <p>I have a working webpack 1 project that I want to migrate to <strong>webpack 2</strong>.</p>
  
  <p>It is almost working, my main remaining problem is with <strong>html-webpack-plugin</strong>:</p>
  
  <p>when I use it in webpack 2, the generated script tag is of the form:</p>
  
  <pre><code>&lt;script type="text/javascript" src="static/js/bundle.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>instead of:</p>
  
  <pre><code>&lt;script type="text/javascript" src="/static/js/bundle.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Note: with the same plugin options, it works as expected in Webpack 1.</p>
  
  <p>Here are the relevant parts of webpack conf:</p>
  
  <pre><code>  entry: [
      paths.appIndexJs,
      publicPath,
    ],
    output: {
      pathinfo: true,
      path: paths.appBuild,
      filename: 'static/js/bundle.js',
    },
  
    // (...)
  
    plugins: [
      new HtmlWebpackPlugin({
        inject: true,
        template: paths.appHtml,
      }),
  </code></pre>
  
  <p>What am I doing wrong?</p>