tools: Ignore node_modules when watching

Closes #14396
This commit is contained in:
Marius Vollmer 2020-07-23 15:24:10 +03:00 committed by GitHub
parent e28a195294
commit 38ac00b704
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -52,7 +52,7 @@ if (ops.watch) {
const time = new Date().toTimeString().split(' ')[0];
process.stdout.write(`${ time } Build started\n`);
});
compiler.watch({}, process_result);
compiler.watch(config.watchOptions, process_result);
} else {
compiler.run(process_result);
}

View File

@ -401,6 +401,10 @@ module.exports = {
maxEntrypointSize: 20000000,
},
watchOptions: {
ignored: /node_modules/
},
module: {
rules: [
{