gulp-analyze-css

Gulp plugin that analyze your css with analyze-css and compare the results to a user-defined benchmark

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
gulp-analyze-css
000.1.08 years ago8 years agoMinified + gzip package size for gulp-analyze-css in KB

Readme

gulp-analyze-css
analyze-css plugin for gulp

Gulp plugin that analyze your css with analyze-css and compare the results to a user-defined benchmark.

Usage

First, install gulp-analyze-css as a development dependency:
npm install --save-dev gulp-analyze-css

When you need proccess Object result of analyze:
var analyzeCss = require("gulp-analyze-css");

gulp.src("./src/*.css")
    .pipe(analyzeCss())
    .pipe(myTaskProccessResult());

If you need export result of analyze (JSON format) and need same source file in next pipe:
var analyzeCss = require("gulp-analyze-css");

gulp.src("./src/*.css")
    .pipe(analyzeCss({ outDiretory: "./dist" }))
    .pipe(myCssTask());

License

MIT License