Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Broccoli plugin to display file sizes

Resources

License

Packages

No packages published