mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-02 19:28:14 +08:00
12 lines
373 B
TypeScript
12 lines
373 B
TypeScript
import { cyan, bold, yellow, green } from 'chalk'
|
|
import { command } from '../utils/log'
|
|
import type { FileSizeReporter } from 'rollup-plugin-filesize'
|
|
|
|
export const reporter: FileSizeReporter = (opt, outputOptions, info) => {
|
|
return command(
|
|
`${cyan(bold(info.fileName))}: bundle size ${yellow(
|
|
info.bundleSize
|
|
)} -> minified ${green(info.minSize)}`
|
|
)
|
|
}
|