huruji / size-table-webpack-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About


Languages

Language:JavaScript 100.0%