From e07c99bdabae279e436f9ad31de7cd757653cdc8 Mon Sep 17 00:00:00 2001 From: chenxsan Date: Sun, 25 Sep 2022 12:34:17 +0800 Subject: [PATCH] docs(configuration): mention default watchOptions.poll value --- src/content/configuration/watch.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/content/configuration/watch.mdx b/src/content/configuration/watch.mdx index 1ce35c77ae4b..556b4b72c260 100644 --- a/src/content/configuration/watch.mdx +++ b/src/content/configuration/watch.mdx @@ -11,6 +11,7 @@ contributors: - Neob91 - Loonride - snitin315 + - chenxsan --- Webpack can watch files and recompile whenever they change. This page explains how to enable this and a couple of tweaks you can make if watching does not work properly for you. @@ -128,7 +129,7 @@ T> If you use `require.context`, webpack will watch your entire directory. You w `boolean = false` `number` -Turn on [polling]() by passing `true`, or specifying a poll interval in milliseconds: +Turn on [polling]() by passing `true` which would set the default poll interval to [`5007`](https://github.com/webpack/watchpack/blob/a54bcdb95759558ca5a9fc2819c4d71b771c162f/lib/DirectoryWatcher.js#L79), or specifying a poll interval in milliseconds: **webpack.config.js**