From 715531111d5f7782d5490a9d808cc084887b7186 Mon Sep 17 00:00:00 2001 From: mak Date: Sun, 25 Jun 2017 18:39:50 +0200 Subject: [PATCH] Fix for atomic save bug on windows Set property awaitWriteFinish for chokidar Filewatcher to true --- bin/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/app.js b/bin/app.js index bc5339c..a6b519c 100755 --- a/bin/app.js +++ b/bin/app.js @@ -1551,7 +1551,8 @@ function watchFolders() { persistent: true, // ignores use anymatch (https://github.com/es128/anymatch) ignored: constants.chokiWatcherIgnore, - + //waited till write to file finishes (atomic save bug) + awaitWriteFinish: true, // performance hit? alwaysStat: true })