gulp-sizereport
Display a report of the size and Gzipped size of your project and trigger alarms when the sizes are higher than expected.
Install
$ npm install --save-dev gulp-sizereport
Usage
A simple usage
var gulp = ;var sizereport = ; gulp;
Options
-
title
(default: null) Display a title above the table. -
total
(default: true) Display the last total row. -
gzip
(default: false) Toggle the Gzipped size column. -
fail
(default: false) Allows you to fail your Gulp task if a file exceeds a threshold.
var gulp = ;var sizereport = ; gulp;
minifier
(default: null) You can add a minifier in order to control the minified size of your source.
var gulp = ;var sizereport = ;var UglifyJS = ; gulp;
Ideal to control the project size on the fly.
gulp;
Alerts
You can place some alerts on values and files. The value is in Bytes.
maxSize
maxGzippedSize
maxMinifiedSize
maxMinifiedGzippedSize
maxTotalSize
maxTotalGzippedSize
maxTotalMinifiedSize
maxTotalMinifiedGzippedSize
var gulp = ;var sizereport = ;var UglifyJS = ; gulp;