Skip to content

1000ch/gulp-stylestats

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

gulp-stylestats

Gulp plugin for StyleStats.

Build Status NPM version Dependency Status devDependency Status

Install

Install via npm:

npm install gulp-stylestats --save-dev

Usage

This is gulpfile.js sample.

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).

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 © Shogo Sensui