size-table-webpack-plugin

4.0.4 • Public • Published

size-table-webpack-plugin

A webpack plugin to show size and gziped of assets in a table

How to use

npm i --save-dev size-table-webpack-plugin
// webpack.config.js
const SizeTableWebapckPlugin = reuire('size-table-webpack-plugin')

const config = {
  plugins: [
    new SizeTableWebapckPlugin()
  ]
}

options

clear

default false

should clear terminal console

premessage

the message before the size-table

postmessage

the message after the size-table

errorSize

default 1024 * 1024 * 500

when asset's size is bigger than errorSize, the color of the row will be red

Readme

Keywords

none

Package Sidebar

Install

npm i size-table-webpack-plugin

Weekly Downloads

15

Version

4.0.4

License

ISC

Unpacked Size

5.92 kB

Total Files

5

Last publish

Collaborators

  • huruji