Analyze your CSS using stylestats.
This plugin requires Grunt
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-stylestats --save-dev
The "stylestats" task
In your project's Gruntfile, add a section named
stylestats to the data object passed into
The options are exactly the same as in the stylestats library. Those are the defaults:
The most basic example of using grunt-stylestats. Just pass the configuration object a
src property with an array of files to analyze (globbing allowed).
If you need to configure multiple targets, you can do it this way:
Custom options, as shown above, are simply passed to the options object (either task-specific or target-specific).
- Fix / Enhance
- Pull Request
- Smile :)