Remove plumber so that gulp script dies when failure occurs

This commit is contained in:
Westly Wright
2018-07-10 11:59:46 -07:00
parent ea0209d268
commit f6c933dd5f
2 changed files with 6 additions and 10 deletions
+6 -9
View File
@@ -16,18 +16,16 @@ import watch from 'gulp-watch';
const $ = gulpLoadPlugins();
const browserSync = require('browser-sync').create();
const isProduction = process.env.NODE_ENV === 'production';
const onError = (err) => {
console.log(err);
}
console.log('&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&')
console.log(process.env)
console.log('&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&')
process.on('SIGINT', () => {
console.log('Caught SIGINT, exiting');
process.on('SIGINT', (err) => {
console.log('Caught SIGINT, exiting', '\r\n', err);
process.exit(0);
});
process.on('uncaughtException', (err) => {
console.log('Uncaught Exception, exiting', '\r\n', err);
process.exit(1);
});
// --
gulp.task('dev', ['build-dev'], () => {
gulp.start('init-watch');
@@ -103,7 +101,6 @@ gulp.task('sass', () => {
return gulp.src([
'src/sass/**/*.scss'
])
.pipe($.plumber({ errorHandler: onError }))
.pipe($.sassLint())
.pipe($.sassLint.format())
.pipe($.sass({ precision: 5, importer: tildeImporter }))
-1
View File
@@ -26,7 +26,6 @@
"gulp-imagemin": "^4.1.0",
"gulp-load-plugins": "^1.5.0",
"gulp-newer": "^1.3.0",
"gulp-plumber": "^1.1.0",
"gulp-sass": "^3.1.0",
"gulp-sass-lint": "^1.3.2",
"gulp-size": "^3.0.0",