mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +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)}`
|
|
)
|
|
}
|