mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-22 07:53:34 +01:00
feat: set the polling mode based on path type
This commit is contained in:
parent
eb340d4ace
commit
9f6890b769
@ -412,7 +412,7 @@ class Watcher {
|
||||
setTimeout(() => {
|
||||
const watcher = chokidar.watch(watchPath, {
|
||||
ignoreInitial: false,
|
||||
usePolling: false,
|
||||
usePolling: watchPath.startsWith("\\\\") ? true : false,
|
||||
ignored: (path) => ['node_modules', '.git'].some((s) => path.includes(s)),
|
||||
persistent: true,
|
||||
ignorePermissionErrors: true,
|
||||
|
Loading…
Reference in New Issue
Block a user