Skip to content

Commit

Permalink
Nuke old and unmaintained packages. (#61)
Browse files Browse the repository at this point in the history
more-css, cssshrink, sqwish and ycssmin.

Fixes #59.
  • Loading branch information
XhmikosR committed Nov 15, 2017
1 parent 953f6fa commit 4ad67e5
Show file tree
Hide file tree
Showing 5 changed files with 118 additions and 342 deletions.
17 changes: 5 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,21 @@ A comparison of CSS minification engines.
* [crass](https://github.com/mattbasta/crass)
* [cssnano](https://github.com/ben-eb/cssnano)
* [csso](https://github.com/css/csso)
* [cssshrink](https://github.com/stoyan/cssshrink)
* [csswring](https://github.com/hail2u/node-csswring)
* [more-css](https://github.com/army8735/more)
* [sqwish](https://github.com/ded/sqwish)
* [ycssmin](https://github.com/yui/ycssmin)

### What are the results?

Most of the time `more-css` comes first although `clean-css` and `csso` come close. Test the minifiers with your CSS to find what works best for you.
Most of the time `crass` comes first although `clean-css`, `cssnano` and `csso` come close. Test the minifiers with your CSS to find what works best for you.

### How can I see the results?

Clone the repository first then run `./bin/bench`. That's it!

Note that on Windows you will need to do `node ./bin/bench`
Clone the repository first then run `node ./bin/bench`. That's it!

If you prefer to see results without cloning the repo here are [the most recent ones](https://goalsmashers.github.io/css-minification-benchmark/).

### How can I generate the html report?

Just run `./bin/bench --html > report.html`
Just run `node ./bin/bench --html > report.html`

### How can I test my CSS file?

Expand All @@ -43,7 +37,6 @@ Please make sure your file does not contain any special comments (`/*! ... */`)

* `clean-css` is configurable, but leaves all by default
* `csso` always leaves one
* `ycssmin` always leave all

### Can I get the total size and time for my CSS files?

Expand All @@ -60,11 +53,11 @@ Copy all your files to the `data` directory like before and run the benchmark wi

### How can I compare a subset of minifiers?

Just run `./bin/bench --only csso,ycssmin` (it's turned into `/.*(csso|ycsmin).*/` regex)
Just run `node ./bin/bench --only csso,cssnano` (it's turned into `/.*(csso|cssnano).*/` regex)

### Can I get the compressed gzip size as well?

Run `./bin/bench --gzip` to measure the gzip size instead of the regular file size.
Run `node ./bin/bench --gzip` to measure the gzip size instead of the regular file size.

## License

Expand Down
Loading

0 comments on commit 4ad67e5

Please sign in to comment.