ignore file watcher permission errors (#238)
parent
0e66dac7b7
commit
5a4591cc3e
|
@ -202,7 +202,7 @@ export default async function getClassNames(
|
||||||
function watch(files = []) {
|
function watch(files = []) {
|
||||||
unwatch()
|
unwatch()
|
||||||
watcher = chokidar
|
watcher = chokidar
|
||||||
.watch(files, { cwd })
|
.watch(files, { cwd, ignorePermissionErrors: true })
|
||||||
.on('change', handleChange)
|
.on('change', handleChange)
|
||||||
.on('unlink', handleChange)
|
.on('unlink', handleChange)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue