JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 70
  • Score
    100M100P100Q66024F

CSS minifier

Package Exports

  • cssshrink

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cssshrink) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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