set chokidar cwd
parent
1768f96b53
commit
387419d031
|
@ -113,7 +113,7 @@ export default async function getClassNames(
|
|||
function watch(files = []) {
|
||||
if (watcher) watcher.close()
|
||||
watcher = chokidar
|
||||
.watch([CONFIG_GLOB, ...files])
|
||||
.watch([CONFIG_GLOB, ...files], { cwd })
|
||||
.on('change', handleChange)
|
||||
.on('unlink', handleChange)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue