-
-
Save Lukas238/146467f25dd53b30fbb6 to your computer and use it in GitHub Desktop.
Better gulp-compass error handling with gulp-plumber and gulp-notify
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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