github

GoogleChromeLabs / size-plugin

  • понедельник, 27 августа 2018 г. в 00:15:51
https://github.com/GoogleChromeLabs/size-plugin

JavaScript
Track compressed Webpack asset sizes over time.



size-plugin npm

Prints the gzipped sizes of your webpack assets and the changes since the last build.

size-plugin

Installation

Install size-plugin as a development dependency using npm:

npm i -D size-plugin

Usage

Add an instance of the plugin to your webpack configuration:

// webpack.config.js
+ const SizePlugin = require('size-plugin');

module.exports = {
  plugins: [
+    new SizePlugin()
  ]
}

License

Apache 2.0

This is not an official Google product.