Output some error when require-dir tasks fails
It could be useful to see the results of the require tasks especially if there is an error.master
parent
a4ddfcae4b
commit
ef591cdc1a
|
@ -186,4 +186,4 @@ gulp.task('pagespeed', pagespeed.bind(null, {
|
|||
}));
|
||||
|
||||
// Load custom tasks from the `tasks` directory
|
||||
try { require('require-dir')('tasks'); } catch (err) {}
|
||||
try { require('require-dir')('tasks'); } catch (err) { console.error(err); }
|
||||
|
|
Loading…
Reference in New Issue