Skip to content

Releases: GoogleChromeLabs/size-plugin

3.0.0

29 Jan 17:03
cc61db7
Compare
Choose a tag to compare
  • 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

29 Jan 17:00
0a01278
Compare
Choose a tag to compare

This is a patch release to address several warnings about "vulnerable dependencies" (none of which were actually in use).

2.0.1

18 Oct 14:09
Compare
Choose a tag to compare
  • Fixes size-plugin.json being written to disk even though writeFile is set to false (#28, #30)

2.0.0

22 Aug 19:05
Compare
Choose a tag to compare

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

22 Aug 19:03
Compare
Choose a tag to compare

Adds support for pluggable output decoration via two new configuration options: options.decorateItem(Item) and options.decorateAfter(Data):

Item

  • name string Filename of the item
  • sizeBefore number Previous size, in kilobytes
  • size number Current size, in kilobytes
  • sizeText string Formatted current size
  • delta number Difference from previous size, in kilobytes
  • deltaText string Formatted size delta
  • msg string Full item's default message
  • color string The item's default CLI color

Data

  • sizes Array<Item> List of file size items
  • output string Current buffered output

1.1.4

15 Mar 23:27
Compare
Choose a tag to compare

Fix an error in recent versions of Webpack 4 ("only size() is available")

1.1.3

15 Mar 22:52
Compare
Choose a tag to compare

Wait one tick before printing sizes to prevent sizes from being cleared or buried in logs.

1.1.2

15 Mar 22:51
Compare
Choose a tag to compare

Outputting format tweak: always separate size-plugin output from preceding logs using a newline. (thanks @Djaler!)

1.1.1

11 Dec 16:45
Compare
Choose a tag to compare
  • Support webpack versions back to 1.x
  • Add support for [chunkhash]

1.1.0

06 Dec 16:09
Compare
Choose a tag to compare
  • Now backwards-compatible with Webpack 3! (#13, thanks @samundrak!)
  • Partial support for output.filename being a function. (#18)