From 49a721354c6ed79dfc49ed36756d265a1a2c3264 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Thu, 23 Jul 2020 18:04:54 +0200 Subject: [PATCH] Exclude node_modules from webpack watching This recently started to overflow inotify, and we don't need that -- it's fine to restart webpack when changing package.json, and it happens rarely enough. Closes #345 --- webpack.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index 2b2f3e3..9929619 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -118,6 +118,9 @@ module.exports = { resolve: { modules: [ nodedir ], }, + watchOptions: { + ignored: /node_modules/, + }, entry: info.entries, externals: externals, output: output,