Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    broccoli-cssshrinkpublic

    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.

    install

    npm i broccoli-cssshrink

    Downloadslast 7 days

    1

    version

    0.0.0

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar