const webpack = require('webpack')

module.exports = (PATHS) => {
  return {
    devtool: 'eval-source-map',
    output: {
      filename  : '[name].[hash:6].js'
    },
    plugins: [
      new webpack.HotModuleReplacementPlugin()
    ],
    devServer: {
      contentBase: PATHS.build,

      // Enable history API fallback so HTML5 History API based
      // routing works. This is a good default that will come
      // in handy in more complicated setups.
      historyApiFallback: true,
      hot: true,
      inline: true,

      // Display only errors to reduce the amount of output.
      stats: 'errors-only',

      // Parse host and port from env so this is easy to customize.
      //
      // If you use Vagrant or Cloud9, set
      // host: process.env.HOST || '0.0.0.0';
      //
      // 0.0.0.0 is available to all network devices unlike default
      // localhost
      host: process.env.HOST,
      port: process.env.PORT
    }
  }
}
@@ -102,16 +102,230 @@
 e-map',%0A
+    entry: %7B%0A      hmr: %5B%0A        'webpack-dev-server/client?http://0.0.0.0:8080', // WebpackDevServer host and port%0A        'webpack/hot/only-dev-server', // %22only%22 prevents reload on syntax errors%0A      %5D%0A    %7D,%0A
     outp
@@ -387,24 +387,64 @@
  plugins: %5B%0A
+      new webpack.NamedModulesPlugin(),%0A
       new we

Use hmr entry points only in dev