Fixes #862 - allows removing unused at rules.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Fri, 24 Mar 2017 11:24:17 +0000 (12:24 +0100)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Thu, 20 Apr 2017 06:27:05 +0000 (08:27 +0200)
commit027b00dc94a18aa590c6e58bf5956cba34f89834
treee602c880c6c429bb99a6cfdcdffc3f9ba982cd10
parent2004810a976e7d075f92205152c34e26d7100383
Fixes #862 - allows removing unused at rules.

Why:

* When an at-rule, i.e. `@counter-style`, `@font-face`, `@keyframes`, or
  `@namespace`, is not referenced anywhere in a stylsheet it can be
  safely removed;
* inspired by https://www.npmjs.com/package/postcss-discard-unused
History.md
README.md
lib/optimizer/level-2/optimize.js
lib/optimizer/level-2/remove-unused-at-rules.js [new file with mode: 0644]
lib/options/optimization-level.js
test/optimizer/level-2/remove-unused-at-rules-test.js [new file with mode: 0644]
test/options/optimization-level-test.js