Update watch params to use polling and improve speed
This commit is contained in:
parent
bec08eecc8
commit
3336dcdaa1
|
@ -11,7 +11,12 @@ export function watch() {
|
||||||
chokidar
|
chokidar
|
||||||
.watch(watchPath, {
|
.watch(watchPath, {
|
||||||
ignored: "**/node_modules",
|
ignored: "**/node_modules",
|
||||||
awaitWriteFinish: true,
|
awaitWriteFinish: {
|
||||||
|
pollInterval: 100,
|
||||||
|
stabilityThreshold: 250,
|
||||||
|
},
|
||||||
|
usePolling: true,
|
||||||
|
interval: 250,
|
||||||
})
|
})
|
||||||
.on("all", async (event: string, path: string) => {
|
.on("all", async (event: string, path: string) => {
|
||||||
// Sanity checks
|
// Sanity checks
|
||||||
|
|
Loading…
Reference in New Issue