From 035299d052ffd13fe58db7b457deeb71f8acab95 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 11 Mar 2021 13:31:30 -0800 Subject: [PATCH] webpack: Prevent Emacs file locks from crashing webpack-dev-server. Signed-off-by: Anders Kaseorg --- webpack.config.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/webpack.config.ts b/webpack.config.ts index 2dd2c7d5f3..230bfabd8a 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -273,6 +273,13 @@ export default (_env: unknown, argv: {mode?: string}): webpack.Configuration[] = 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 + "**/.#*", + ], + }, }; const serverConfig: webpack.Configuration = {