broccoli wrapper for cssshrink
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
index.js
package.json

README.md

broccoli-cssshrink

This is a simple broccoli wrapper for the cssshrink CSS minifier.

Installation

npm i --save-dev broccoli-cssshrink

Usage

Plugin takes a broccoli tree as it's first argument and looks for the all *.css files in it by default.

Brocfile.js

var cssshrink = require( 'broccoli-cssshrink' );

// bigCss is a tree from the any broccoli plugin (broccoli-sass, for example)
var minCss = cssshrink( bigCss );

// ... and export minCss tree

Documentation

CSSShrink( inputTree, options )

Optional parameters:


[options.input] {Array|String}

An array of glob patterns, or a simple glob string for CSS files to minify (must exists at least one file for the each search pattern).

Default value: '**/*.css'


[options.debug] {Boolean}

Controls the output of a debug information (percentage of compression for the each file).

Default value: false


[options.comment] {String}

A comment string at the beginning of all minified CSS files.

Default value: ''

License

This project is distributed under the MIT license.