Nervously Practice Multithreading

    broccoli-base64-css

    0.0.6 • Public • Published

    broccoli-base64-css

    Broccoli plugin to replace asset urls in CSS with base64 strings.

    Install

    npm install --save broccoli-base64-css
    

    Example

    var base64CSS = require('broccoli-base64-css');
     
    // Example with default options
    var tree = base64CSS(tree, {
      imagePath: 'public'
    , fontPath: 'public'
    , maxFileSize: 4096 // larger files will be left untouched
    , extensions: ['css']
    , fileTypes: ['png', 'jpg', 'jpeg', 'gif', 'svg']
    , assetsFromTree: false // look for images in same tree
                            // as css, rather than at static paths
                            // default: false
    });

    Install

    npm i broccoli-base64-css

    DownloadsWeekly Downloads

    24

    Version

    0.0.6

    License

    MIT

    Last publish

    Collaborators

    • moudy