Answer the question
In order to leave comments, you need to log in
Did I overdo it with gulp-plumber?
In general, I configured plumber like this:
const plumber = require('gulp-plumber')
const notify = require('gulp-notify')
const chalk = require('chalk')
module.exports = function plumberSmart() {
return plumber({
errorHandler(error) {
const message = error.message
notify.onError({
title: 'Gulp - ошибка компиляции',
message: 'Откройте терминал для просмотра ошибки',
sound: 'Beep'
})(error)
console.log(
chalk.red(message)
)
this.emit('end')
}
})
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question