Last active
November 9, 2015 22:14
-
-
Save misaxi/80ed9d733982a36f50f3 to your computer and use it in GitHub Desktop.
gulp task error handling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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