Track compressed Webpack asset sizes over time.
New: compression
option to switch between gzip
, brotli
and none
: (#23)
new SizePlugin({ compression: 'gzip' }) // use gzip (still the default)
new SizePlugin({ compression: 'none' }) // show uncompressed sizes + deltas
new SizePlugin({ compression: 'brotli' }) // show Brotli-compressed sizes + deltas (requires Node 12)
This is a patch release to address several warnings about "vulnerable dependencies" (none of which were actually in use).
size-plugin.json
being written to disk even though writeFile
is set to false
(#28, #30)Adds a new publishSizes
option, which publishes sizes to size-plugin-store.now.sh - see kuldeepkeshwar/size-plugin-bot for more details!
Adds support for pluggable output decoration via two new configuration options: options.decorateItem(Item)
and options.decorateAfter(Data)
:
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 colorFix an error in recent versions of Webpack 4 ("only size() is available")
Wait one tick before printing sizes to prevent sizes from being cleared or buried in logs.
Outputting format tweak: always separate size-plugin output from preceding logs using a newline. (thanks @Djaler!)
[chunkhash]
output.filename
being a function. (#18)