mirror of
https://github.com/sunniejs/vue-h5-template.git
synced 2025-10-05 02:29:57 +08:00
17 lines
386 B
TypeScript
17 lines
386 B
TypeScript
/**
|
|
* @name ConfigVisualizerPlugin
|
|
* @description 打包体积分析
|
|
*/
|
|
|
|
import { visualizer } from 'rollup-plugin-visualizer';
|
|
import type { PluginOption } from 'vite';
|
|
|
|
export const ConfigVisualizerPlugin = () => {
|
|
return visualizer({
|
|
filename: './node_modules/.cache/visualizer/stats.html',
|
|
open: true,
|
|
gzipSize: true,
|
|
brotliSize: true,
|
|
}) as PluginOption;
|
|
};
|