gulp-size

Display the size of your project

npm install gulp-size
146 downloads in the last day
906 downloads in the last week
3 115 downloads in the last month

gulp-size Build Status

Display the size of your project

Logs out the total size of files in the stream and optionally the individual file-sizes.

Install

$ npm install --save-dev gulp-size

Usage

var gulp = require('gulp');
var size = require('gulp-size');

gulp.task('default', function () {
    gulp.src('fixture.js')
        .pipe(size())
        .pipe(gulp.dest('dist'));
});

API

size(options)

options

showFiles

Type: boolean
Default: false

Displays the size of every file instead of just the total size.

gzip

Type: boolean
Default: false

Displays the gzipped size instead.

title

Type: string
Default: ''

Give it a title so it's possible to distinguish the output of multiple instances logging at once.

License

MIT © Sindre Sorhus

npm loves you