Description
When using something like webpack --watch
in a service it can cause conflicts with Wireit's --watch
option. The build tool progressively outputs and can trigger multiple rebuilds successively in downstream packages. We're currently implementing this by using nodemon
but that feels like an unnecessary extra step when we have watch support already in wireit
.
I noticed that there's currently a debounce implemented in the watcher already with a value of 0
and it would be great if we could set this to a configurable value. Since --watch
itself is not a configuration option but is rather an option I think it makes sense to also make this an option. --watch --delay <ms>
seems appropriate. Having delay
in the package.json
doesn't feel like it makes sense since it only applies to --watch
.