ignore file watcher permission errors (#238)

master
Brad Cornes 2021-01-08 15:57:10 +00:00
parent 0e66dac7b7
commit 5a4591cc3e
1 changed files with 1 additions and 1 deletions

View File

@ -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)
} }