Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

crunch-css

1.1.0 • Public • Published

crunch-css

Generates common css file for all passed html-pages and\nrewrites them to include that css-file (via usemin blocks).

CLI

$ npm install --global crunch-css
$ crunch-css --help
 
  Usage:
    crunch-css [options] FILES
 
  Options:
    -p, --projectroot  your htmlroot
    -k, --keep         keep usemin blocks
    -h, --help         print usage information
    -v, --version      show version info and exit
 
  Examples:
    $ crunch-css index.html
 
    Use bash globbing:
    $ crunch-css *.html

Tripping Hazard

If your webproject uses relative paths to css-files, you need to invoke the tool from your htmlroot folder, otherwise uncss will fail to find your stylesheets.

Usemin

Check out the Usemin-Readme to learn how to add blocks to your html-files.

License

MIT © Christoph Häfner

install

npm i crunch-css

Downloadsweekly downloads

4

version

1.1.0

license

MIT

repository

Gitgitlab

last publish

collaborators

  • avatar
Report a vulnerability