Skip to content

gulp-concat discards errors from the stream #150

@markboyall

Description

@markboyall

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'));
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions