2.0.0 • Published 7 years ago

gulp-csslint-report v2.0.0

Weekly downloads
265
License
MIT
Repository
github
Last release
7 years ago

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/'}