From 638ed4f6121d1e13759c3ce8c6ca4a9905f8117c Mon Sep 17 00:00:00 2001 From: chengj Date: Sun, 22 Dec 2019 15:40:17 +0800 Subject: [PATCH] feat: theme task update --- gulpfile.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 0db5dad..254dedf 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -34,8 +34,10 @@ const themeTask = async (done) => { return scssTask(done, item); }) const allFinshed = await Promise.all(allTask) - console.log('themeTask done'); - injectTask(done); + if(allFinshed.every(item=>item)){ + console.log('themeTask done'); + injectTask(done); + } done() }