Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gulp-concat discards errors from the stream #150

Open
markboyall opened this issue Oct 30, 2019 · 0 comments
Open

gulp-concat discards errors from the stream #150

markboyall opened this issue Oct 30, 2019 · 0 comments

Comments

@markboyall
Copy link

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'));
});
@markboyall markboyall changed the title Discarded errors gulp-concat discards errors from the stream Oct 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant