Skip to content

Commit bde990a

Browse files
authored
docs(configuration): mention default watchOptions.poll value (webpack#6419)
1 parent 10fd714 commit bde990a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/content/configuration/watch.mdx

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ contributors:
1111
- Neob91
1212
- Loonride
1313
- snitin315
14+
- chenxsan
1415
---
1516

1617
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
128129

129130
`boolean = false` `number`
130131

131-
Turn on [polling](<https://en.wikipedia.org/wiki/Polling_(computer_science)>) by passing `true`, or specifying a poll interval in milliseconds:
132+
Turn on [polling](<https://en.wikipedia.org/wiki/Polling_(computer_science)>) 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:
132133

133134
**webpack.config.js**
134135

0 commit comments

Comments
 (0)