Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stoyan/cssshrink
CSS minifier
https://github.com/stoyan/cssshrink
Last synced: 29 days ago
JSON representation
CSS minifier
- Host: GitHub
- URL: https://github.com/stoyan/cssshrink
- Owner: stoyan
- Created: 2014-06-25T16:03:36.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-09-09T13:51:19.000Z (about 7 years ago)
- Last Synced: 2024-10-01T15:41:21.254Z (about 1 month ago)
- Language: JavaScript
- Size: 403 KB
- Stars: 1,054
- Watchers: 40
- Forks: 82
- Open Issues: 22
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
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)