From 7073cc34628e5a48854e01c9a5231ff2e013e748 Mon Sep 17 00:00:00 2001 From: JMW Date: Fri, 29 Apr 2022 10:48:18 +0200 Subject: [PATCH] fix: pass pollOptions to webpack (#7180) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sébastien Lorber Co-authored-by: Joshua Chen --- packages/docusaurus/src/commands/start.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/docusaurus/src/commands/start.ts b/packages/docusaurus/src/commands/start.ts index 0b9b8f2e179f..169776a1f193 100644 --- a/packages/docusaurus/src/commands/start.ts +++ b/packages/docusaurus/src/commands/start.ts @@ -117,6 +117,10 @@ export async function start( ); let config: webpack.Configuration = merge(await createClientConfig(props), { + watchOptions: { + ignored: /node_modules\/(?!@docusaurus)/, + poll: cliOptions.poll, + }, infrastructureLogging: { // Reduce log verbosity, see https://github.com/facebook/docusaurus/pull/5420#issuecomment-906613105 level: 'warn',