Skip to content

Commit 53a420f

Browse files
committed
Fixes clean task and build would wait until the clean task is completed.
1 parent ac93ed3 commit 53a420f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

gulpfile.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ function js(base, inputs, output) {
8787
pipe(gulp.dest(BUILD));
8888
}
8989

90-
gulp.task('clean', function(cb) {
91-
del([ BUILD, DIST ], cb);
90+
gulp.task('clean', function() {
91+
return del([ BUILD, DIST ]);
9292
});
9393

9494
gulp.task('chrome:copy', [ 'chrome:copy:configs', 'chrome:copy:folders', 'chrome:copy:manifest' ], function(cb) {
@@ -240,6 +240,8 @@ gulp.task('common:test', function(cb) {
240240
//gulp.task('watch', function() {
241241
//});
242242

243-
gulp.task('default', [ 'clean', 'chrome' ], function(cb) {
243+
gulp.task('default', [ 'clean' ], function(cb) {
244+
// wait until clean task is completed
245+
gulp.start('chrome');
244246
cb();
245247
});

0 commit comments

Comments
 (0)