Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

webpack: Don’t watch node_modules for changes.

Anders Kaseorg82106faf6c03
diff --git a/webpack.config.ts b/webpack.config.ts
index 4d5f660f4f1..dd0bc1bf9a1 100644
--- a/webpack.config.ts
+++ b/webpack.config.ts
@@ -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
+ "**/.#*",
+ ],
+ },
},
};