mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-16 03:49:52 +00:00
Remove polling for webpack (was CPU heavy) and HMR for vendors
This commit is contained in:
@@ -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',
|
||||
}));
|
||||
|
||||
|
||||
@@ -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$/]),
|
||||
|
||||
Reference in New Issue
Block a user