grunt cssbeautifier
JavaScript CSS
Latest commit 63c1e07 Jul 2, 2014 wliao Grunt registertask update
Permalink
Failed to load latest commit information.
tasks Grunt registertask update Jul 2, 2014
test
.npmignore Init project Jul 12, 2013
Gruntfile.js
README.md Grunt cssbeautifier first submit Jul 12, 2013
package.json

README.md

grunt-cssbeautifier

cssbeautify.com for grunt

Getting Started

This plugin recommends using Grunt ~0.4.1.

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:

Grunt ~0.4.1

npm install grunt-cssbeautifier --save-dev

One the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-cssbeautifier');

Config

  • cssbeautifier
    • files (required): Your source files to beautify
    • options (optional): Overwrite default cssbeautifier options

- Minimum config

cssbeautifier : {
  files : ["src/**/*.css"]
}

Default options from cssbeautify will be used

- Default options

cssbeautifier : {
  files : ["src/**/*.css"],
  options : {
    indent: '  ',
    openbrace: 'end-of-line',
    autosemicolon: false
  }
}

Only specifiy options to overwrite

Release History

  • 0.1.0: Initial version.