var webpack = require('webpack'); module.exports = { context: __dirname, entry: [ // Add the client which connects to our middleware 'webpack-hot-middleware/client?path=/__webpack_hmr&timeout=20000', // And then the actual application './client.js' ], output: { path: __dirname, publicPath: '/', filename: 'bundle.js' }, devtool: '#source-map', plugins: [ new webpack.optimize.OccurenceOrderPlugin(), new webpack.HotModuleReplacementPlugin(), new webpack.NoErrorsPlugin() ], };