gulp-analyze-css
v0.1.0
Published
Gulp plugin that analyze your css with analyze-css and compare the results to a user-defined benchmark
Downloads
7,495
Maintainers
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());