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