From 6be7c76d8100636e201801d6525045e4cf2daca4 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sat, 15 Oct 2022 12:21:53 -0700 Subject: [PATCH] Ignore node modules in webpack watch --- webpack.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webpack.js b/webpack.js index 77df5769..ab3fed3e 100644 --- a/webpack.js +++ b/webpack.js @@ -16,4 +16,9 @@ webpackConfig.resolve.alias = { webpackConfig.entry.main = path.resolve(path.join('src', 'main')); delete webpackConfig.optimization.splitChunks; +webpackConfig.watchOptions = { + ignored: /node_modules/, + aggregateTimeout: 300, +}; + module.exports = webpackConfig