Skip to content

Commit

Permalink
Merge pull request #10 from SmaatoUI/BT-163/improvement/compile-js-er…
Browse files Browse the repository at this point in the history
…ror-reporting

[BT-163]: Display compileJs task errors in terminal.
  • Loading branch information
cjcenizal committed Dec 1, 2015
2 parents 831028d + d5c3741 commit 99fc94e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/compileJs.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ module.exports = customConfig => {
function compileJs() {
const bundle = bundler.bundle();
return bundle
.on('error', function onCompileJsError(error) {
gulpUtil.log(gulpUtil.colors.red(error.message));
this.emit('end');
})
.pipe(vinylSourceStream('dist.js'))
.pipe(gulp.dest(config.dst));
}
Expand Down

0 comments on commit 99fc94e

Please sign in to comment.