Improves reordering by trying multiple fits.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Sun, 22 Feb 2015 21:54:36 +0000 (21:54 +0000)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Wed, 25 Feb 2015 22:04:54 +0000 (22:04 +0000)
commitd3f644c43aaff89d5be0f7241914c7c5843a5395
treef3de38d5b513e99c5cadd2579713ae44e1954cf3
parentfedc34f7c84320b223704e0419757e83823926aa
Improves reordering by trying multiple fits.

Tries to find the best possible option of token re-arrangements, which
at the same time solves issue with reordering more than one selector at
a time.

Instead of comparing pre- and post-reordering size it tries subsets
of selectors too (one level deep) for possible better options.
lib/selectors/optimizers/advanced.js
test/fixtures/960-min.css
test/fixtures/big-min.css
test/fixtures/blueprint-min.css
test/fixtures/font-awesome-min.css
test/selectors/optimizer-test.js