diff --git a/webpack.config.js b/webpack.config.js index 31d865c..34b3d3e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,26 +1,30 @@ module.exports = { - entry: [ - './src/index.js' - ], + entry: ['./src/index.js'], output: { path: __dirname, publicPath: '/', filename: 'bundle.js' }, module: { - loaders: [{ - exclude: /node_modules/, - loader: 'babel', - query: { - presets: ['react', 'es2015', 'stage-1'] + loaders: [ + { + exclude: /node_modules/, + loader: 'babel', + query: { + presets: ['react', 'es2015', 'stage-1'] + } } - }] + ] }, resolve: { extensions: ['', '.js', '.jsx'] }, devServer: { historyApiFallback: true, - contentBase: './' + contentBase: './', + watchOptions: { + aggregateTimeout: 300, + poll: 1000 + } } };