mirror of
https://github.com/usebruno/bruno.git
synced 2025-06-20 19:58:10 +02: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(() => {
|
setTimeout(() => {
|
||||||
const watcher = chokidar.watch(watchPath, {
|
const watcher = chokidar.watch(watchPath, {
|
||||||
ignoreInitial: false,
|
ignoreInitial: false,
|
||||||
usePolling: false,
|
usePolling: watchPath.startsWith("\\\\") ? true : false,
|
||||||
ignored: (path) => ['node_modules', '.git'].some((s) => path.includes(s)),
|
ignored: (path) => ['node_modules', '.git'].some((s) => path.includes(s)),
|
||||||
persistent: true,
|
persistent: true,
|
||||||
ignorePermissionErrors: true,
|
ignorePermissionErrors: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user