https://github.com/1000ch/gulp-stylestats
Gulp task for StyleStats.
https://github.com/1000ch/gulp-stylestats
css gulp javascript stylesheet stylestats
Last synced: 10 months ago
JSON representation
Gulp task for StyleStats.
- Host: GitHub
- URL: https://github.com/1000ch/gulp-stylestats
- Owner: 1000ch
- Created: 2014-03-17T08:46:59.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2018-04-14T07:27:38.000Z (about 8 years ago)
- Last Synced: 2025-07-02T09:10:42.818Z (12 months ago)
- Topics: css, gulp, javascript, stylesheet, stylestats
- Language: JavaScript
- Homepage: https://npmjs.org/package/gulp-stylestats
- Size: 122 KB
- Stars: 60
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# [gulp-stylestats](https://npmjs.org/package/gulp-stylestats)
Gulp plugin for [StyleStats](http://github.com/t32k/stylestats).
[](https://travis-ci.org/1000ch/gulp-stylestats)
[](http://badge.fury.io/js/gulp-stylestats)
[](https://david-dm.org/1000ch/gulp-stylestats)
[](https://david-dm.org/1000ch/gulp-stylestats#info=devDependencies)
## Install
Install via [npm](https://npmjs.org/package/gulp-stylestats):
```
npm install gulp-stylestats --save-dev
```
## Usage
This is `gulpfile.js` sample.
```js
const gulp = require('gulp');
const stylestats = require('gulp-stylestats');
gulp.task('stylestats', function () {
gulp.src('./fixtures/*.css')
.pipe(stylestats({
/* some stylestats options */
}));
});
gulp.task('default', ['stylestats']);
```
Output StyleStats data (sample: JSON format).
```js
const gulp = require('gulp');
const stylestats = require('gulp-stylestats');
gulp.task('stylestats', function () {
gulp.src('./fixtures/*.css')
.pipe(stylestats({
type: 'json',
outfile: true
/* and some stylestats options */
}))
.pipe(gulp.dest('./stats/'));
});
gulp.task('default', ['stylestats']);
```
## License
[MIT](https://1000ch.mit-license.org) © [Shogo Sensui](https://github.com/1000ch)