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

How do I make errors fatal, causing gulp to fail #71

Open
mar627 opened this issue Sep 13, 2020 · 1 comment
Open

How do I make errors fatal, causing gulp to fail #71

mar627 opened this issue Sep 13, 2020 · 1 comment
Labels

Comments

@mar627
Copy link

mar627 commented Sep 13, 2020

What currently happens:
When a require('module') fails, gulp-bro reports the error, but carries on.

What I want to happen
When a require('module') fails, gulp-bro causes a fatal stop to the build.

const {src, dest} = require('gulp');
const bro = require('gulp-bro')

function js() {
    return src(paths.src.js)
        .pipe(bro())
        .on('Error', function () {

        })
        .pipe(dest(paths.dest.js))
};
@ngryman
Copy link
Owner

ngryman commented Oct 14, 2020

Hey, I think the error: 'emit' option should do what you are asking for. Let me know if it does resolve your issue.

@ngryman ngryman added the bug label Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants