Skip to content

Commit cde8a2e

Browse files
mdmoreauRyanZim
authored andcommitted
Add awaitWriteFinish to chokidar options (postcss#221)
1 parent a6bce74 commit cde8a2e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,11 @@ Promise.resolve()
8989
printVerbose(chalk.dim('\nWaiting for file changes...'))
9090
const watcher = chokidar.watch(input.concat(dependencies(results)), {
9191
usePolling: argv.poll,
92-
interval: argv.poll && typeof argv.poll === 'number' ? argv.poll : 100
92+
interval: argv.poll && typeof argv.poll === 'number' ? argv.poll : 100,
93+
awaitWriteFinish: {
94+
stabilityThreshold: 50,
95+
pollInterval: 10
96+
}
9397
})
9498

9599
if (configFile) watcher.add(configFile)

0 commit comments

Comments
 (0)