I\'m using gulp-plumber + gulp-notify and want to put task name in gulp-notify as a title. following is the code i wrote, thanks in advance.
gulp.task(\'SOMETASK
Define the task name outside of the callback and reference it where needed.
var taskName = 'SOMETASK'; gulp.task(taskName, function() { return gulp.src(sourcePaths) .pipe(plumber({errorHandler: notify.onError({ message: "<%= error.message %>", title: taskName })})); });