var webpack = require('webpack'); module.exports = { mode: 'development', entry: [ 'react-hot-loader/patch', 'webpack-hot-middleware/client', './src/js/index' ], output: { filename: 'bundle.js', publicPath: '/' }, module: { rules: [ { test: /\.js$/, loader: 'eslint-loader', exclude: /node_modules/, enforce: 'pre' }, { test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/ }, { test: /\.css$/, loader: 'style-loader!css-loader' } ] }, plugins: [ new webpack.DefinePlugin({ DEV: true }), new webpack.HotModuleReplacementPlugin() ] };