title: html-webpack-plugin is only injecting js in root route?
body: <p>Using the Html-webpack-plugin 
  if I go to the root directory localhost:8080 it injects the javascript as expected 
  If I go localhost:8080/test the html renders but no js gets injected</p>
  
  <p>server.js </p>
  
  <pre><code>app.use('/', express.static(__dirname + '/dist'));
  
  app.get('*', (req, res)=&gt; {
      res.sendFile(__dirname + '/dist/index.html');
  });
  </code></pre>
  
  <p>webpack.config.js</p>
  
  <pre><code>entry: [
          "webpack-hot-middleware/client?reload=true",
          "babel-polyfill",
          path.resolve(__dirname, './config/app/app.js')
      ],
      output: {
          path: path.resolve(__dirname, './dist'),
          filename: 'app.min.js',
          publicPath: '/'
      },
      plugins: isDeveloping ? [
          new HtmlWebpackPlugin({
              hash: true,
              filename: 'index.html',
              template: __dirname + '/dist/index.html',
              inject: 'body'
          })
  </code></pre>
  
  <p>I found a similar question to this one and their solution was to configure output.publicPath = '/' which I did but still no luck. I just get the template with no JS injected</p>