1.1.2 • Published 11 months ago
rollup-plugin-total-size v1.1.2
rollup-plugin-total-size
适用于 vue 项目的 echarts 图表集合
install
yarn add rollup-plugin-total-size
usage
import { RollupOptions } from 'rollup'
import { totalSize } from 'rollup-plugin-total-size'
/** export rollup.config */
export default async (): Promise<RollupOptions | Array<RollupOptions>> => {
return {
plugins: [totalSize()]
}
}
options
key | description |
---|---|
total | 统计 dist 体积综合 |
max | 当单文件体积超过阈值, 发出提示 |
disable | 禁用统计 (比如: --watch) |