Skip to content

Instantly share code, notes, and snippets.

@misaxi
Last active November 9, 2015 22:14
Show Gist options
  • Save misaxi/80ed9d733982a36f50f3 to your computer and use it in GitHub Desktop.
Save misaxi/80ed9d733982a36f50f3 to your computer and use it in GitHub Desktop.
gulp task error handling
gulp.task('sass', function () {
return gulp.src('./scss/ionic.app.scss')
.pipe(sass().on('error', onErrorResumeNext)) // the meat
.pipe(gulp.dest('./www/css/'))
})
function onErrorResumeNext (err) {
gutil.log(err) // logs the error for dianostics
this.emit('end') // ends the stream
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment