0.1.4 • Published 4 years ago

strip-css v0.1.4

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

strip-css

npm.io npm.io

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 - 425
bytes 60543, 60KB: 73497 - 12954

debug

DEBUG=strip-css npx strip-css

license

MIT

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.0

4 years ago