Skip to content

Error reporting when using less preprocessor #42

@yantakus

Description

@yantakus

You are using gulp-plumber to report errors in .less files. But it stops gulp on error and user has to rerun it every time.

I use the following function to report errors:

function handleError(err) {
  console.log(err.toString());
  this.emit('end');
}

and then:

.pipe($.less().on('error', handleError))

So it has the same output on errors as gulp-plumber, but doesn't stop gulp.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions