Skip to content

Instantly share code, notes, and snippets.

@Lukas238
Created August 5, 2015 23:41
Show Gist options
  • Save Lukas238/146467f25dd53b30fbb6 to your computer and use it in GitHub Desktop.
Save Lukas238/146467f25dd53b30fbb6 to your computer and use it in GitHub Desktop.
Better gulp-compass error handling with gulp-plumber and gulp-notify
var plumber = require('gulp-plumber'),
notify = require('gulp-notify');
var gulp_src = gulp.src;
gulp.src = function() {
return gulp_src.apply(gulp, arguments)
.pipe(plumber({ errorHandler: notify.onError({
title: "<%= error.plugin %>",
message: "<%= error.message %>"
})
}))
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment