Releases: GoogleChromeLabs/size-plugin
Releases · GoogleChromeLabs/size-plugin
3.0.0
- Add TypeScript definition (#39)
- Add custom "mode" option for Webpack 3 (#32)
- Display output later to ensure it comes after webpack logging (#4)
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)
2.0.2
2.0.1
2.0.0
Adds a new publishSizes
option, which publishes sizes to size-plugin-store.now.sh - see kuldeepkeshwar/size-plugin-bot for more details!
1.2.0
Adds support for pluggable output decoration via two new configuration options: options.decorateItem(Item)
and options.decorateAfter(Data)
:
Item
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