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

Catch gulp plugins errors #13

Open
Bogdaan opened this issue May 22, 2016 · 0 comments
Open

Catch gulp plugins errors #13

Bogdaan opened this issue May 22, 2016 · 0 comments

Comments

@Bogdaan
Copy link

Bogdaan commented May 22, 2016

While i use gulp watch (with browsersync) and make a mistake in jade template - this will break watch cycle.
So you have to restart gulp.

Posible solution:

  1. for less:
.pipe($.less().on('error', console.log))
  1. for jade:
.pipe(
      $.if(/\.jade$/, $.jade({
        pretty: !RELEASE,
        locals: {
          pkgs: pkgs,
          googleAnalyticsID: GOOGLE_ANALYTICS_ID
        }
      }).on('error', console.log)
    ))

Same question: gulpjs/gulp#71

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