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'})