Home

Awesome

<p align="center"> <h1 align="center"> size-plugin <a href="https://www.npmjs.org/package/size-plugin"><img src="https://img.shields.io/npm/v/size-plugin.svg?style=flat" alt="npm"></a> </h1> </p> <p align="center"> Prints the gzipped sizes of your webpack assets and the changes since the last build. </p> <p align="center"> <img src="https://i.imgur.com/3bWBrJm.png" width="602" alt="size-plugin"> </p>

🙋 Using Rollup? Check out the rollup-plugin-size port.

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()
  ]
}

Options

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

Table of Contents

SizePlugin

new SizePlugin(options)

Parameters

Item

Properties

Data

Properties

License

Apache 2.0

This is not an official Google product.