GitHub - Kuramyo/cssshrink: CSS minifier · GitHub
Skip to content

Kuramyo/cssshrink

 
 

Folders and files

Repository files navigation

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

About

CSS minifier

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

  • JavaScript 93.4%
  • CSS 3.9%
  • HTML 2.7%