Added speed improvements and made empty elements removal optional (-e option).
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Mon, 4 Jun 2012 10:35:02 +0000 (12:35 +0200)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Mon, 4 Jun 2012 10:35:02 +0000 (12:35 +0200)
commit7381a5416ac88a0177481d43b471ee1af781fef4
tree539d5a628bd39ccd7b57c649ed8a50d03d341bdb
parentf54009844dcbfe8173fe85408f1dac3af11e4610
Added speed improvements and made empty elements removal optional (-e option).

* Added -e/removeEmpty option to force empty elements removal.
* Rewrote stripComments and stripContent to speed'em up.
* Refactored CleanCSS#process.
* Added debug option.
* Added test/bench.js and `make bench`.
Makefile
bin/cleancss
lib/clean.js
test/batch-test.js
test/bench.js [new file with mode: 0644]
test/data/big-min.css [new file with mode: 0644]
test/data/big.css [new file with mode: 0644]
test/unit-test.js