👀 Tweaking chokidar configuration

This commit is contained in:
2022-04-13 22:46:07 -07:00
parent c3a2364d79
commit c00ca0a3a0
2 changed files with 11 additions and 28 deletions

View File

@@ -128,9 +128,10 @@ export default class ApiService extends Service {
ignored: /(^|[\/\\])\../, // ignore dotfiles
persistent: true,
usePolling: true,
interval: 500,
ignoreInitial: true,
followSymlinks: true,
atomic: true,
depth: 10,
awaitWriteFinish: {
stabilityThreshold: 2000,
pollInterval: 100,
@@ -183,7 +184,7 @@ export default class ApiService extends Service {
);
console.log("File copy started...");
fs.stat(path, function (err, stat) {
fs.stat(path, (err, stat) => {
if (err) {
console.log(
"Error watching file for copy completion. ERR: " +