From e721528a75bbce57f47c0e390039dd865e306be4 Mon Sep 17 00:00:00 2001 From: Dave Ceddia Date: Fri, 29 Jul 2016 23:47:52 -0400 Subject: [PATCH] Prevent Webpack from watching node_modules dir --- scripts/start.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/start.js b/scripts/start.js index 15243229d37..c93754df3b0 100644 --- a/scripts/start.js +++ b/scripts/start.js @@ -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);