Skip to content

Commit 3707203

Browse files
committed
fix(gulp:build): fix crash upon ts type errors
TS somehow started emitting the type errors as errors that are then propagating to webpack and finally gulp. Thus need to catch and recover from thrown errors. closes #2039, #2110
1 parent 022119a commit 3707203

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: templates/app/gulpfile.babel.js

+3
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,9 @@ gulp.task('webpack:dist', function() {
236236
const webpackDistConfig = makeWebpackConfig({ BUILD: true });
237237
return gulp.src(webpackDistConfig.entry.app)
238238
.pipe(webpack(webpackDistConfig))
239+
.on('error', (err) => {
240+
this.emit('end'); // Recover from errors
241+
})
239242
.pipe(gulp.dest(`${paths.dist}/client`));
240243
});
241244

0 commit comments

Comments
 (0)