Files
cody-crm/frontend/packages/web/config/plugin/visualizer.ts
wangziqi 72e2110987
Some checks failed
Synchronize to Gitee / repo-sync (push) Has been cancelled
Typos Checking / Spell Check with Typos (push) Has been cancelled
chore: initial commit
2026-06-23 11:56:23 +08:00

19 lines
409 B
TypeScript

/**
* Generation packaging analysis
* 生成打包分析
*/
import { isReportMode } from '../utils';
import visualizer from 'rollup-plugin-visualizer';
export default function configVisualizerPlugin() {
if (isReportMode()) {
return visualizer({
filename: './node_modules/.cache/visualizer/stats.html',
open: true,
gzipSize: true,
brotliSize: true,
});
}
return [];
}