C

crunch-css

c5305e98 1.0.1 · by Christoph Häfner
Name Last Update
lib Loading commit data...
test Loading commit data...
yarn-offline-cache Loading commit data...
.gitignore Loading commit data...
.yarnrc Loading commit data...
LICENSE Loading commit data...
cli.js Loading commit data...
index.js Loading commit data...
license Loading commit data...
package.json Loading commit data...
readme.md Loading commit data...
yarn.lock Loading commit data...

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