Skip to content
This repository was archived by the owner on Mar 28, 2018. It is now read-only.

Commit 03c0e3a

Browse files
committed
Update README.md
Usage with Gulp.js
1 parent 2809718 commit 03c0e3a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

+19
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,25 @@ var output = postcss([
2525
]).process(css);
2626
```
2727

28+
### Usage with Gulp.js
29+
30+
```js
31+
gulp.task('cssstats', function(){
32+
var cssstats = require('postcss-cssstats');
33+
var postcss = require('gulp-postcss');
34+
return gulp
35+
.src('/path/to/file.css')
36+
.pipe(
37+
postcss([
38+
cssstats(
39+
function(stats) {
40+
console.log(stats);
41+
})
42+
])
43+
);
44+
});
45+
```
46+
2847
## License
2948

3049
MIT

0 commit comments

Comments
 (0)