Skip to content

Instantly share code, notes, and snippets.

@nivv
Created June 26, 2014 08:03
Show Gist options
  • Save nivv/507202a031054cef3b03 to your computer and use it in GitHub Desktop.
Save nivv/507202a031054cef3b03 to your computer and use it in GitHub Desktop.
gulp.task('styles', function () {
gulp.src('less/main.less')
.pipe(less(function () {
this.emit("error", new Error("Something happend: Error message!"))
}))
.on("error", notify.onError(function (error) {
return "Message to the notifier: " + error.message;
}))
.pipe(gulp.dest('css'))
.pipe(livereload());
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment