xushunfa459 bb8a597e19 update
2022-06-30 19:27:52 +08:00

15 lines
344 B
TypeScript

import visualizer from 'rollup-plugin-visualizer';
import { IsReport } from '../../constant';
export function ConfigVisualizerConfig() {
if (IsReport) {
return visualizer({
filename: './node_modules/.cache/visualizer/stats.html',
open: true,
gzipSize: true,
brotliSize: true,
}) as Plugin;
}
return [];
}