A comparison of CSS minification engines.
Most of the time either
csso comes first. Although it depends on a particular CSS file.
Clone the repository first then run
./bin/bench. That's it!
Note that on Windows you will need to do
If you prefer to see results without cloning the repo here are the most recent ones.
Just copy your file to
data directory (make sure filename ends with
.css) and re-run the benchmark.
Please make sure your file does not contain any special comments (
/*! ... */) since not all minifiers strip them correctly:
clean-csshas it configurable but leaves all by default
cssoalways leaves one
ycssminalways leave all
- add it to
- require it in
bin/benchand add it to
- re-run the benchmark
- add it to this file in "Which engines are covered?" section above
- send a PR (if you wish to have it included)
./bin/bench --only ncss,ycssmin (it's turned into
css-minification-benchmark is released under the MIT License.