Skip to content

Instantly share code, notes, and snippets.

@zacharyblank
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zacharyblank/a8383da151ef977d77ef to your computer and use it in GitHub Desktop.
Save zacharyblank/a8383da151ef977d77ef to your computer and use it in GitHub Desktop.
Gulp Error Notifications
var plumber = require('gulp-plumber');
var gutil = require('gulp-util');
var onError = function(err) {
gutil.beep();
console.error("You did something wrong, NERD! " + err.message);
}
gulp.task('less', function() {
gulp.src('app/src/less/main.less')
.pipe(plumber({
errorHandler: onError
}))
.pipe(less({
paths: [path.join(__dirname, 'less', 'includes')],
sourceMap: true
}))
.pipe(gulp.dest('app/release/styles'))
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment