Broccoli plugin to display file sizes
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.
specs
src/lib
.babelrc
.codeclimate.yml
.editorconfig
.eslintignore
.eslintrc
.gitignore
.npmignore
.travis.yml
CONTRIBUTING.md
LICENSE.md
README.md
esdoc.json
package.json

README.md

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).