strip-css
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

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

debug

DEBUG=strip-css npx strip-css

license

MIT

Readme

Keywords

Package Sidebar

Install

npm i strip-css

Weekly Downloads

1

Version

0.1.4

License

ISC

Unpacked Size

7.88 kB

Total Files

4

Last publish

Collaborators

  • deptno