Format style sheets according to the WordPress CSS coding standards.
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-wp-css --save-dev
Run this task with the
grunt wpcss command.
In your project's Gruntfile, add a section named
wpcss to the data object passed into
Whether the plugin should attempt to automatically correct spacing around comments that appear between rule declarations within the style sheet.
The CSSComb configuration to use for sorting CSS properties. Possible values are
Updated peer dependencies to support Grunt 1.0. See #13
This is the @GaryJones release.
- Updated the default CSScomb config (0887c06).
- Updated the alphabetical CSScomb config to match improvements in the new default config.
- Fixed the exports variable name in the tests.
- Added Travis CI support.
- Initial release.