strip-css
strip-css
is built for making strip down version of css from existing css.
It is useful when you try to AMP. AMP restricts css size up to 50Kb, strip-css
could help this.
usage
$ npx strip-css --help
use standard input
cat input.css | npx strip-css -r [rule] -o [media query] > output.css
example
$ curl https://unpkg.com/tachyons@4.10.0/css/tachyons.min.css | \npx strip-css \ -r 'dark-' \ -r '$fl-' \ -r '-l$' \ -r '-ns$' \> dist.css rule 1688: 2113 - 425bytes 60543, 60KB: 73497 - 12954
debug
DEBUG=strip-css npx strip-css
license
MIT