Skip to content

Commit

Permalink
Merge pull request #89 from jawinn/patch-2
Browse files Browse the repository at this point in the history
Stop "gulp watch" from crashing on an undefined variable
  • Loading branch information
Jeremy Englert committed Jul 3, 2015
2 parents 127c688 + e2a38ec commit 260c972
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ var gulp = require('gulp'),
// Compile Sass, Autoprefix and minify
gulp.task('styles', function() {
return gulp.src('./assets/scss/**/*.scss')
.pipe(plumber())
.pipe(plumber(function(error) {
gutil.log(gutil.colors.red(error.message));
this.emit('end');
}))
.pipe(sass())
.pipe(autoprefixer({
browsers: ['last 2 versions'],
Expand Down Expand Up @@ -93,4 +96,4 @@ gulp.task('watch', function() {
// Watch foundation-js files
gulp.watch('./bower_components/foundation/js/foundation/*.js', ['foundation-js']);

});
});

0 comments on commit 260c972

Please sign in to comment.