Prevent Webpack from watching node_modules dir (#294)

This commit is contained in:
Dave Ceddia
2016-07-30 11:00:11 -04:00
committed by Dan Abramov
parent 6a830a5586
commit 6a8f79ce3a

View File

@@ -155,7 +155,10 @@ function runDevServer(port) {
historyApiFallback: true,
hot: true, // Note: only CSS is currently hot reloaded
publicPath: config.output.publicPath,
quiet: true
quiet: true,
watchOptions: {
ignored: /node_modules/
}
}).listen(port, (err, result) => {
if (err) {
return console.log(err);