Fix the compile and watch step to not return unless the compilation actually finished

This commit is contained in:
roblabla 2015-08-06 18:09:36 +00:00
parent 5a966ec56d
commit 001f0d7cdc

View File

@ -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']);