webpack: Prevent Emacs file locks from crashing webpack-dev-server.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2021-03-11 13:31:30 -08:00
parent d74266ac75
commit 035299d052
1 changed files with 7 additions and 0 deletions

View File

@ -273,6 +273,13 @@ export default (_env: unknown, argv: {mode?: string}): webpack.Configuration[] =
stats: "errors-only", stats: "errors-only",
noInfo: true, 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 = { const serverConfig: webpack.Configuration = {