compressed-size-plugin
v0.0.5
Published
Core module for [size-plugin](https://github.com/GoogleChromeLabs/size-plugin)/[rollup-plugin-size](https://github.com/luwes/rollup-plugin-size)
Downloads
8
Maintainers
Readme
size-plugin-core
Core module for size-plugin/rollup-plugin-size
Options
Table of Contents
SizePluginCore
SizePluginCore(options)
Parameters
options
Objectoptions.compression
string? compression method(gzip/brotli/none) to use, default: 'gzip'options.pattern
string? minimatch pattern of files to trackoptions.exclude
string? minimatch pattern of files NOT to trackoptions.filename
string? file name to save filesizes to diskoptions.publish
boolean? option to publish filesizes to size-plugin-storeoptions.writeFile
boolean? option to save filesizes to diskoptions.mode
boolean? option for production/development modeoptions.columnWidth
number? option for add spacing in messageoptions.stripHash
function? custom function to remove/normalize hashed filenames for comparison
Item
Properties
name
string Filename of the itemsizeBefore
number Previous size, in kilobytessize
number Current size, in kilobytessizeText
string Formatted current sizedelta
number Difference from previous size, in kilobytesdeltaText
string Formatted size deltamsg
string Full item's default messagecolor
string The item's default CLI color