set chokidar cwd

master
Brad Cornes 2020-04-29 19:13:48 +01:00
parent 1768f96b53
commit 387419d031
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ export default async function getClassNames(
function watch(files = []) { function watch(files = []) {
if (watcher) watcher.close() if (watcher) watcher.close()
watcher = chokidar watcher = chokidar
.watch([CONFIG_GLOB, ...files]) .watch([CONFIG_GLOB, ...files], { cwd })
.on('change', handleChange) .on('change', handleChange)
.on('unlink', handleChange) .on('unlink', handleChange)
} }