readme.md

June 30, 2014 ยท View on GitHub

CSS minifier

Why

Because CSS is on the critical path to rendering pages. It must be small! Or else!

Installation

$ npm install cssshrink

Usage

  var cssshrink = require('cssshrink');
  var css =
    'a{color: #ff0000;}';
  css = cssshrink.shrink(css);

Result:

a{color:red}

Playground

Available at http://cssshrink.com

More info

Slides at http://cssshrink.com/velocity

Grunt and Gulp tasks

  • grunt-cssshrink
  • gulp-cssshrink

Contents

  1. 1Why
  2. 2Installation
  3. 3Usage
  4. 4Playground
  5. 5More info
  6. 6Grunt and Gulp tasks