Fixes #938 - removing unused at-rules with `!important`.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Mon, 8 May 2017 06:50:19 +0000 (08:50 +0200)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Mon, 8 May 2017 07:00:05 +0000 (09:00 +0200)
commit8d947706c9250e65fccbc4e8feeac53981d64c32
treea3fdb5cd94cc8b19a5c9255bc42c58b8f8acaa1d
parent24ae5bfc4830af716f603a8090e994ceb6248a0f
Fixes #938 - removing unused at-rules with `!important`.

Why:

* When an at-rule is referenced from a shorthand property, the latter
  needs to be broken apart, which as a result strips `!important`
  modifier. So after checking shorthands need to be restored back.
History.md
lib/optimizer/level-2/remove-unused-at-rules.js
test/optimizer/level-2/remove-unused-at-rules-test.js