webpack: Don’t watch node_modules for changes.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-04-16 14:15:13 -07:00
committed by Tim Abbott
parent 7264d44dd4
commit 82106faf6c

View File

@@ -261,13 +261,14 @@ export default (_env: unknown, argv: {mode?: string}): webpack.Configuration[] =
publicPath: "/webpack/",
stats: "errors-only",
noInfo: true,
},
watchOptions: {
ignored: [
// Prevent Emacs file locks from crashing webpack-dev-server
// https://github.com/webpack/webpack-dev-server/issues/2821
"**/.#*",
],
watchOptions: {
ignored: [
"**/node_modules/**",
// Prevent Emacs file locks from crashing webpack-dev-server
// https://github.com/webpack/webpack-dev-server/issues/2821
"**/.#*",
],
},
},
};