i am using gulp in my project for prod build related activities. I have tasks like following
gulp.task('bundle-libs', bundlelibs);
gulp.task('bundle-modules', bundle);
/* build libs for production */
gulp.task('build:prod', function (done) {
runSequence('clean', ['styles', 'copy-assets'], 'compile', 'systemjs_config', 'prefix_routes', 'bundle-libs', done)
});
/* create module bundles */
gulp.task('bundle', function (done) {
runSequence('copy-required-files', 'bundle-modules', done);
});
But in this , when any one of the tasks fail i get an error in the console, but the build process continues. What i want to do is , when any of the tasks fail, i want to show suitable error in the console and stop the build process ie i do not want to execute the subsequent tasks. How to go about this ? i searched online, but couldnt get anything that could solve the issue. Please help. Thank you.