From b92c72b6c85042d733ac3f9eed9ac1476a012c1c Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Wed, 2 May 2018 13:31:58 +0800 Subject: [PATCH] fix: build scripts gulp task bug --- antd-tools/gulpfile.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/antd-tools/gulpfile.js b/antd-tools/gulpfile.js index 4baef31f9..1e06a536b 100644 --- a/antd-tools/gulpfile.js +++ b/antd-tools/gulpfile.js @@ -238,11 +238,17 @@ function pub (done) { gulp.task('dist', ['compile'], (done) => { dist(done) }) -gulp.task('compile', ['compile-with-es'], () => { +gulp.task('compile', ['compile-with-es'], (done) => { compile() + .on('finish', function () { + done() + }) }) -gulp.task('compile-with-es', () => { +gulp.task('compile-with-es', (done) => { compile(false) + .on('finish', function () { + done() + }) }) gulp.task('pub', ['check-git', 'compile'], (done) => {