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.
This commit is contained in:
Martin Pitt 2020-07-23 17:53:35 +02:00
parent 2bb8e01d2d
commit 435789a2e9

View file

@ -118,6 +118,9 @@ module.exports = {
resolve: { resolve: {
modules: [ nodedir ], modules: [ nodedir ],
}, },
watchOptions: {
ignored: /node_modules/,
},
entry: info.entries, entry: info.entries,
externals: externals, externals: externals,
output: output, output: output,