10.
Errors: Call the Plumber
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
Whoops, an error! Please, try again later.
7 Comments
This was one of those real "wow" days. How wonderful is gulp?
Hey Richard ,
Haha, we're going to release one more wonderful screencast: Webpack, which is even more wonderful for us, because we've switched from Gulp to Webpack on KnpU about six months ago ;)
Stay tuned!
Cheers!
Hi, I'm using @import and partials. When I make a syntax error in one of the partials it doesn't throw an error!! It only throws an error when it detects a syntax error in the main scss file... That's so bad, please help
Hey Marouane,
Try to add "use strict" at the top of the JS file, does it help you? See https://www.w3schools.com/j... for more information.
Cheers!
Hello Ryan,
Just ran into an issue. Plumber seems to prevent gulp to throw the correct exit code when the script fails. It is problematic when you build assets for production in a deployment workflow, and gulp fails silently.
So I now use : .pipe(gulpif(!util.env.production, plumber()))
When using plugins, it should be:
.pipe(plugins.if(!config.production, plumber()))
Hey Nicolas!
I like it a lot - very good point. I've added a note at the bottom of this chapter - thanks for sharing!
Cheers!
"Houston: no signs of life"
Start the conversation!