strip-css
v0.1.4
Published
♽ strip css for amp
Downloads
7
Readme
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/[email protected]/css/tachyons.min.css | \
npx strip-css \
-r 'dark-' \
-r '$fl-' \
-r '-l$' \
-r '-ns$' \
> dist.css
rule 1688: 2113 - 425
bytes 60543, 60KB: 73497 - 12954
debug
DEBUG=strip-css npx strip-css
license
MIT