Skip to content

Commit

Permalink
fix(alita): 修复 DONE_EVENT 调用多次的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ykforerlang committed Jul 8, 2019
1 parent 48d417a commit 2c8c857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filewatch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2c8c857

Please sign in to comment.