From 2c8c857658629159e8330bcc177e6931aa7826a4 Mon Sep 17 00:00:00 2001 From: ykforerlang <1527997464@qq.com> Date: Mon, 8 Jul 2019 13:59:07 +0800 Subject: [PATCH] =?UTF-8?q?fix(alita):=20=E4=BF=AE=E5=A4=8D=20DONE=5FEVENT?= =?UTF-8?q?=20=E8=B0=83=E7=94=A8=E5=A4=9A=E6=AC=A1=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/filewatch/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filewatch/index.js b/src/filewatch/index.js index 8487aab..e01615a 100644 --- a/src/filewatch/index.js +++ b/src/filewatch/index.js @@ -49,7 +49,7 @@ export default (ignored) => { unlinkDir(dir) }) .on('ready', () => { - eventEmitter.on(DONE_EVENT, () => { + eventEmitter.once(DONE_EVENT, () => { if (watchMode) { console.log(`转化完成!监听文件修改...`.info) } else {