Size Plugin Versions Save

Track compressed Webpack asset sizes over time.

3.0.0

3 years ago
  • 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

3 years ago

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

2.0.1

4 years ago
  • Fixes size-plugin.json being written to disk even though writeFile is set to false (#28, #30)

2.0.0

4 years ago

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

4 years ago

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

5 years ago

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

1.1.3

5 years ago

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

1.1.2

5 years ago

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

1.1.1

5 years ago
  • Support webpack versions back to 1.x
  • Add support for [chunkhash]

1.1.0

5 years ago
  • Now backwards-compatible with Webpack 3! (#13, thanks @samundrak!)
  • Partial support for output.filename being a function. (#18)