Skip to content

Commit 878aecd

Browse files
committed
remove watchOffset option in favor of time-fix-plugin
1 parent fbad3a9 commit 878aecd

File tree

2 files changed

+10
-17
lines changed

2 files changed

+10
-17
lines changed

README.md

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -180,21 +180,6 @@ Options for formatting statistics displayed during and after compile. For more
180180
information and property details, please see the
181181
[webpack documentation](https://webpack.js.org/configuration/stats/#stats).
182182

183-
### watchOffset
184-
185-
Type: `Number`
186-
Default: `11000`
187-
188-
Watching (by means of `lazy: false`) will frequently cause multiple compilations
189-
as the bundle changes during compilation. This is due in part to cross-platform
190-
differences in file watchers, so that webpack doesn't loose file changes when
191-
watched files change rapidly. Since that scenario is more an edge case than not,
192-
this option serves as a means to prevent multiple needless, identical compilations
193-
by advancing start-time of a watcher by a number of seconds, which keeps generated
194-
files from triggering the watch cycle.
195-
196-
_To disable this prevention, set this option to a value of `0`._
197-
198183
### watchOptions
199184

200185
Type: `Object`
@@ -270,6 +255,15 @@ instance.waitUntilValid(() => {
270255
console.log('Package is in a valid state');
271256
});
272257
```
258+
## Known Issues
259+
260+
### Multiple Successive Builds
261+
262+
Watching (by means of `lazy: false`) will frequently cause multiple compilations
263+
as the bundle changes during compilation. This is due in part to cross-platform
264+
differences in file watchers, so that webpack doesn't loose file changes when
265+
watched files change rapidly. If you run into this situation, please make use of
266+
the [`TimeFixPlugin`](https://github.com/egoist/time-fix-plugin).
273267

274268
## Server-Side Rendering
275269

@@ -405,4 +399,4 @@ We welcome your contributions! Please have a read of [CONTRIBUTING.md](CONTRIBUT
405399
[middleware-url]: https://github.com/webpack/webpack-dev-middleware
406400
[stack-url]: https://stackoverflow.com/questions/tagged/webpack-dev-middleware
407401
[uglify-url]: https://github.com/webpack-contrib/uglifyjs-webpack-plugin
408-
[wjo-url]: https://github.com/webpack/webpack.js.org
402+
[wjo-url]: https://github.com/webpack/webpack.js.org

index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ const defaults = {
1818
colors: true,
1919
context: process.cwd()
2020
},
21-
watchOffset: 11000,
2221
watchOptions: {
2322
aggregateTimeout: 200
2423
}

0 commit comments

Comments
 (0)