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
This commit is contained in:
Martin Pitt 2020-07-23 18:04:54 +02:00 committed by GitHub
parent 2bb8e01d2d
commit 49a721354c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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