With this task:
gulp.task("es6", function () { return browserify({entries: 'src/main/es6/main.js', extensions: ['.js'], debug: true}) .transform(babelify) .bundle() .pipe(source('superpos.js')) .pipe(streamify(uglify())) .pipe(gulp.dest('src/main/webapp')); });
I get this error log:

It is clear and beautiful, I like it.
But in order for my watch to work, I need to handle the error, and not let it go, something like
... .transform(babelify) .bundle() .on('error', function(error){
How can I reproduce the same error log here?
I would prefer to avoid painfully reproducing it by combining chalk, gutil and reading the error file, but somehow used the same function.
Denys seguret
source share