From 03c0e3a264353b6c54da8e2c247de09962d33396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D0=B8=D0=BB=20=D0=9F=D1=80=D0=BE?= =?UTF-8?q?=D0=BD=D0=B8=D0=BD?= Date: Mon, 18 May 2015 18:01:52 +0900 Subject: [PATCH 1/3] Update README.md Usage with Gulp.js --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 6d9171b..d6a2331 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,25 @@ var output = postcss([ ]).process(css); ``` +### Usage with Gulp.js + +```js +gulp.task('cssstats', function(){ + var cssstats = require('postcss-cssstats'); + var postcss = require('gulp-postcss'); + return gulp + .src('/path/to/file.css') + .pipe( + postcss([ + cssstats( + function(stats) { + console.log(stats); + }) + ]) + ); +}); +``` + ## License MIT From 5ed3811b9dbeb35706aa0324b174fa16c7978ded Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D0=B8=D0=BB=20=D0=9F=D1=80=D0=BE?= =?UTF-8?q?=D0=BD=D0=B8=D0=BD?= Date: Mon, 18 May 2015 18:03:36 +0900 Subject: [PATCH 2/3] Update README.md reformat --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d6a2331..5929ee0 100644 --- a/README.md +++ b/README.md @@ -28,19 +28,20 @@ var output = postcss([ ### Usage with Gulp.js ```js -gulp.task('cssstats', function(){ +gulp.task('cssstats', function() { var cssstats = require('postcss-cssstats'); var postcss = require('gulp-postcss'); return gulp - .src('/path/to/file.css') + .src('app/_design/less/index.css') .pipe( postcss([ cssstats( function(stats) { - console.log(stats); - }) - ]) - ); + console.log(stats); + } + ) + ]) + ); }); ``` From c02bc17bf2a1d96cba1d77a1cdf71add8d234420 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D0=B8=D0=BB=20=D0=9F=D1=80=D0=BE?= =?UTF-8?q?=D0=BD=D0=B8=D0=BD?= Date: Mon, 18 May 2015 18:05:35 +0900 Subject: [PATCH 3/3] Update README.md reformat --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 5929ee0..5ada061 100644 --- a/README.md +++ b/README.md @@ -34,14 +34,14 @@ gulp.task('cssstats', function() { return gulp .src('app/_design/less/index.css') .pipe( - postcss([ - cssstats( - function(stats) { - console.log(stats); - } - ) - ]) - ); + postcss([ + cssstats( + function(stats) { + console.log(stats); + } + ) + ]) + ); }); ```