gulp-community / gulp-concat

Streaming concat middleware for gulp
MIT License
792 stars 127 forks source link

gulp-concat discards errors from the stream #150

Open markboyall opened 4 years ago

markboyall commented 4 years ago

We are using gulp-less to build our LESS files, then using gulp-concat to bundle them.

When we use concat, errors from LESS compilation are discarded. It seems that gulp-concat builds a result stream out of all of the incoming successful files; there is no handling for if the existing stream failed.

Our reproduction gulp task simlpy looks like

gulp.task('less', [], function () {
    return gulp
        .src(['./**/*.less', '!./node_modules/**'])
        .pipe(sourcemaps.init())
        .pipe(less({ paths: "./" }))
        .pipe(concat('styles.css'));
});