From eff4abcb619399814a3f776601b0ce0494585666 Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 25 Mar 2019 11:11:14 -0300 Subject: [PATCH] correct sequence gulp --- gulpfile.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 2ae932f..34d9279 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -21,7 +21,9 @@ var paths = { dist: 'dist/' }; -gulp.task('uglify', gulpSequence('clean', ['templates', 'uglify-spec'], 'uglify-app')); +gulp.task('uglify', function(callback) { + gulpSequence('clean', ['templates', 'uglify-spec'], 'uglify-app')(callback); +}); gulp.task('templates', function() { return pump( @@ -68,8 +70,7 @@ gulp.task('uglify-spec', function() { }); gulp.task('clean', function() { - return gulp.src(['tmp', 'dist'], {read: false}) - .pipe(clean()); + return gulp.src(['tmp', 'dist'], {read: false}).pipe(clean()); }); gulp.task('pre-commit', function() { @@ -84,7 +85,7 @@ gulp.task('pre-commit', function() { gulp.start('uglify'); }); - + gulp.task('webserver', function() { pump [ connect.server({port: 3300, host: '0.0.0.0'}) -- 1.9.1