gulp-less-reporter
v0.0.3
Published
Error reporter for gulp-less
Downloads
334
Readme
gulp-less-reporter
This plugin provide an error reporter for gulp-less. The reporter print like the following:
[12:47:01] gulp-less: variable @undefined-variable is undefined in file somefile.less line no. 2
1 html {
2 color: @undefined-variable;
3 }
Install
Install gulp-less-reporter
$ npm install --save-dev gulp-less-reporter
Attach the reporter as an error handler for gulp-less
var reporter = require('gulp-less-reporter'); gulp.task('build', function() { gulp.src('somefile.less'). pipe(less()).on('error', reporter). pipe(gulp.dest('/dev/null')); });