From 525fc360ae46e6c5ad8e9ba4b1473a58393b1cb9 Mon Sep 17 00:00:00 2001 From: Tim Neutkens Date: Thu, 9 Jul 2020 19:58:39 +0200 Subject: [PATCH] Exclude node_modules in watchOptions (#15020) --- packages/next/build/webpack-config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/build/webpack-config.ts b/packages/next/build/webpack-config.ts index d782c1926c..325fdfe68a 100644 --- a/packages/next/build/webpack-config.ts +++ b/packages/next/build/webpack-config.ts @@ -711,7 +711,7 @@ export default async function getBaseWebpackConfig( } }, watchOptions: { - ignored: ['.git/**', 'node_modules/**', '.git/**'], + ignored: ['**/.git', '**/node_modules'], }, output: { path: outputPath, -- GitLab