For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt, and this page is available as Markdown at /zh/config/options/mode.md.
close
  • 简体中文
  • mode

    Warning

    旧版顶层 mode 配置已在 Rsdoctor 2.x 中移除且会被忽略,请改用 output.mode。参阅 mode 配置迁移

    已移除的配置曾支持以下值:

    • 类型: "normal" | "brief" | "lite"
    • 可选: true
    • 默认值: normal

    这些值对应以下报告行为:

    • normal 模式: 在构建产物目录中生成一个 .rsdoctor 文件夹,其中包含各种数据文件,并在报告页面中展示代码。输出目录可以通过 reportDir 进行配置。

    • brief 模式: 在报告输出目录中生成 rsdoctor-report.html。该目录默认为构建产物目录,也可通过 reportDir 配置。所有构建分析数据都会注入这个独立 HTML 文件,可以直接在浏览器中打开。可用配置项请参阅 mode: 'brief'

    • lite 模式: 基于普通模式,不展示源码和产物代码,仅显示打包后的代码信息。

      • 顶层 mode: 'lite' 配置已在 Rsdoctor 2.x 中移除且会被忽略。features lite 配置仍受支持。新配置请使用 output.reportCodeType