set chokidar cwd
parent
1768f96b53
commit
387419d031
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue