Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/huruji/size-table-webpack-plugin
https://github.com/huruji/size-table-webpack-plugin
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/huruji/size-table-webpack-plugin
- Owner: huruji
- Created: 2019-01-26T11:23:46.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-23T08:43:45.000Z (over 5 years ago)
- Last Synced: 2024-07-04T20:00:49.331Z (4 months ago)
- Language: JavaScript
- Size: 245 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
- awesome-github-star - size-table-webpack-plugin
README
# size-table-webpack-plugin
A webpack plugin to show size and gziped of assets in a table## How to use
```js
npm i --save-dev size-table-webpack-plugin
``````js
// webpack.config.js
const SizeTableWebapckPlugin = reuire('size-table-webpack-plugin')const config = {
plugins: [
new SizeTableWebapckPlugin()
]
}
```## options
### cleardefault `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