From 001f0d7cdc708548cc3da1b80e078f7cde62098e Mon Sep 17 00:00:00 2001 From: roblabla Date: Thu, 6 Aug 2015 18:09:36 +0000 Subject: [PATCH] Fix the compile and watch step to not return unless the compilation actually finished --- gulpfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index ad17d18..6053692 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -10,7 +10,7 @@ var options = { var sourcemaps = require('gulp-sourcemaps'); gulp.task('compile', function() { - gulp + return gulp .src('src/**/*.js') .pipe(plumber({ errorHandler: function(err) { @@ -26,7 +26,7 @@ gulp.task('compile', function() { }); gulp.task('watch', function() { - gulp.watch('src/**/*.js', ['compile']); + return gulp.watch('src/**/*.js', ['compile']); }); gulp.task('default', ['compile']);