title: Serving express static files not working with bundle from webpack :(
body: <p>so I have a node/express app that serves back a bundle.js bundled by webpack.</p>
  
  <p>I've been banging my head at this issue for close to 4 nights and I don't know anymore.</p>
  
  <p>I'm getting the <code>Uncaught SyntaxError: Unexpected token &lt;</code> error as the express static middleware is not catching the request and treating it.</p>
  
  <p>webpack.config.js:</p>
  
  <pre><code>output: {
     path: BUILD_DIR,
     filename: 'bundle.js',
     // https://github.com/webpack/webpack-dev-middleware/issues/205
     // DO NOT leave publicPath out -- it'll cause errors if we do
     publicPath: '/',
  },
  </code></pre>
  
  <p>express middleware:</p>
  
  <pre><code>var serveStatic = require('serve-static')
  app.use(serveStatic(
     path.join(__dirname, 'statics'),
  ))
  app.use('/dist', express.static('dist'));
  app.use('/statics', express.static('statics'));\
  </code></pre>
  
  <p>index.html:
      <code>&lt;script src="bundle.js" type="text/javascript"&gt;&lt;/script&gt;</code></p>