From 53543ecfd7b255a0bf3a240fceb3cf98d32e9035 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8A=B2=E9=B9=8F?= Date: Mon, 20 Apr 2020 17:16:44 +0800 Subject: [PATCH] await write finish --- doric-cli/scripts/watcher.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doric-cli/scripts/watcher.js b/doric-cli/scripts/watcher.js index fe6d6f24..e16e4b4a 100644 --- a/doric-cli/scripts/watcher.js +++ b/doric-cli/scripts/watcher.js @@ -12,6 +12,8 @@ setTimeout(() => { ws.listen(7777) chokidar.watch(process.cwd() + "/bundle", { ignored: /(^|[\/\\])\../, + awaitWriteFinish: true, + alwaysStat: true, }).on('change', (path) => { if (ws.debugging) { console.log("debugging, hot reload by pass")