mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-20 14:33:49 +00:00
Migrate docs to language-prefixed app routes and split content into zh/en trees, including translated English navigation and pages. Made-with: Cursor
14 lines
587 B
Plaintext
14 lines
587 B
Plaintext
---
|
|
title: 构建体积分析
|
|
description: 查看打包体积与依赖分布的常用方式
|
|
---
|
|
|
|
# 构建体积分析
|
|
|
|
模板使用 **Vite**(经 Vite+ 调用)。分析产物体积的常见做法:
|
|
|
|
1. **`vp build`** 后查看终端输出的 chunk 大小汇总。
|
|
2. 需要可视化时,可在应用内按需接入 **rollup-plugin-visualizer**(或等价插件)生成 `stats.html`,再打开报告查看各模块占比。
|
|
|
|
本仓库模板**默认不内置**可视化分析插件;按需添加后记得仅在分析构建 profile 下启用,避免常驻增加配置复杂度。
|