mode
Warning
旧版顶层 mode 配置已在 Rsdoctor 2.x 中移除且会被忽略,请改用 output.mode。参阅 mode 配置迁移。
已移除的配置曾支持以下值:
- 类型:
"normal" | "brief" | "lite"lite已在 Rsdoctor 2.x 中移除且会被忽略,请改用 output.reportCodeType。
- 可选:
true - 默认值:
normal
这些值对应以下报告行为:
-
normal 模式: 在构建产物目录中生成一个
.rsdoctor文件夹,其中包含各种数据文件,并在报告页面中展示代码。输出目录可以通过 reportDir 进行配置。 -
brief 模式: 在报告输出目录中生成
rsdoctor-report.html。该目录默认为构建产物目录,也可通过 reportDir 配置。所有构建分析数据都会注入这个独立 HTML 文件,可以直接在浏览器中打开。可用配置项请参阅 mode: 'brief'。 -
lite 模式: 基于普通模式,不展示源码和产物代码,仅显示打包后的代码信息。
- 顶层
mode: 'lite'配置已在 Rsdoctor 2.x 中移除且会被忽略。featureslite 配置仍受支持。新配置请使用 output.reportCodeType。
- 顶层

