Skip to content

huruji/size-table-webpack-plugin

Repository files navigation

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published