broccoli-file-size

    2.0.3 • Public • Published

    broccoli-file-size

    Latest Stable Version License Build Status

    Dependency Status NPM Downloads Test Coverage API Documentation Code Climate

    Broccoli plugin to display file sizes. Example output:

    > broccoli build dist
    
    file1.txt => 446 kB (284 kB gzipped)
    file2.txt => 223 kB (74 kB gzipped)
    file3.txt => 543 kB (324 B gzipped)
    

    Installation

    npm install --save-dev broccoli-file-size
    

    Usage

    ES5

    var FileSizePlugin = require('broccoli-file-size');
    tree = new FileSizePlugin(tree);
    

    ES2015+

    import FileSizePlugin from 'broccoli-file-size';
    tree = new FileSizePlugin(tree);
    

    Options

    tree = new FileSizePlugin(tree, {
      colors: true,
      gzipped: true
    });
    

    colors

    Enable/disable colors (default: true).

    gzipped

    Show/hide gzipped size (default: true).

    Install

    npm i broccoli-file-size

    DownloadsWeekly Downloads

    1

    Version

    2.0.3

    License

    ISC

    Last publish

    Collaborators

    • amercier