rollup-plugin-total-size
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

rollup-plugin-total-size

npm GitHub stars npm version

适用于 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)

Readme

Keywords

Package Sidebar

Install

npm i rollup-plugin-total-size

Weekly Downloads

1

Version

1.1.2

License

MIT

Unpacked Size

47.3 kB

Total Files

12

Last publish

Collaborators

  • halo-951