Remove polling for webpack (was CPU heavy) and HMR for vendors

This commit is contained in:
David Kaltschmidt
2016-12-05 11:30:06 +01:00
parent ec79c1ebb1
commit 298f27bf3f
2 changed files with 4 additions and 5 deletions

View File

@@ -56,10 +56,6 @@ if (process.env.NODE_ENV !== 'production') {
publicPath: config.output.publicPath,
// options
noInfo: true,
watchOptions: {
aggregateTimeout: 500,
poll: true
},
stats: 'errors-only',
}));

View File

@@ -38,7 +38,9 @@ module.exports = {
],
vendors: ['babel-polyfill', 'classnames', 'dagre', 'filesize', 'immutable', 'lodash',
'moment', 'page', 'react', 'react-dom', 'react-motion', 'react-redux', 'redux',
'redux-thunk', 'reqwest', 'xterm']
'redux-thunk', 'reqwest', 'xterm',
'webpack-hot-middleware/client'
]
},
// Used by Webpack Dev Middleware
@@ -51,6 +53,7 @@ module.exports = {
// Necessary plugins for hot load
plugins: [
new webpack.optimize.CommonsChunkPlugin('vendors', 'vendors.js'),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin(),
new webpack.IgnorePlugin(/^\.\/locale$/, [/moment$/]),