gulp-csslint-report

Glup plugin to generate HTML report from the csslint results

Usage no npm install needed!

<script type="module">
  import gulpCsslintReport from 'https://cdn.skypack.dev/gulp-csslint-report';
</script>

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