gulp-csslint-report
v2.0.0
Published
Glup plugin to generate HTML report from the csslint results
Downloads
773
Readme
gulp-csslint-report
Generates HTML report from the csslint results
Usage
First, do a install gulp-csslint as a development dependency:
npm install --save-dev gulp-csslint
Then, install the reporter:
npm install --save-dev gulp-csslint-report
Then, add it to your gulpfile.js:
var csslint = require('gulp-csslint');
var htmlReporter = require('gulp-csslint-report');
gulp.task('css', function() {
gulp.src('client/css/*.css')
.pipe(csslint())
.pipe(htmlReporter());
});
API
htmlReporter(options)
Type: Object
You can pass the output filename (consolidated report) and individual css file reports location directory.
gulp.src('client/css/*.css')
.pipe(csslint())
.pipe(htmlReporter({
'filename': 'index.html',
'directory': './csslint-reports/'
}));
Defaults are: {'filename': 'csslint-report.html', 'directory': './logs/'}