https://github.com/stoyan/cssshrink
CSS minifier
https://github.com/stoyan/cssshrink
Last synced: 11 months ago
JSON representation
CSS minifier
- Host: GitHub
- URL: https://github.com/stoyan/cssshrink
- Owner: stoyan
- Created: 2014-06-25T16:03:36.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2017-09-09T13:51:19.000Z (over 8 years ago)
- Last Synced: 2025-05-09T15:20:06.219Z (11 months ago)
- Language: JavaScript
- Size: 403 KB
- Stars: 1,050
- Watchers: 39
- Forks: 81
- Open Issues: 22
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- awesome-wpo - CSSshrink - Because CSS is ospon the critical path to rendering pages. It must be small! Or else! (Minifiers - JS & CSS / Meetups)
- fucking-awesome-wpo - CSSshrink - Because CSS is ospon the critical path to rendering pages. It must be small! Or else! (Minifiers - JS & CSS / Meetups)
- awesome-wpo-chinese - CSSshrink - Because CSS is ospon the critical path to rendering pages. It must be small! Or else! (Minifiers - JS & CSS)
- awesome-wpo-dup - CSSshrink - Because CSS is ospon the critical path to rendering pages. It must be small! Or else! (Minifiers - JS & CSS)
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
```js
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](https://github.com/JohnCashmore/grunt-cssshrink)
* [gulp-cssshrink](https://www.npmjs.org/package/gulp-cssshrink)