For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/api/build/output/dist-path.md.
Lynx
  • 简体中文
  • output.distPath

    optional distPath?: DistPathConfig

    Lynx 默认值覆盖

    此项是 Rsbuild 配置,pluginLynx 覆盖了它的默认值。下方默认值指应用插件后的值。请在 rsbuild.config.ts 顶层配置,显式设置的值优先。

    完整行为见 Rsbuild 配置参考。

    设置产物文件的目录。

    默认值

    使用 Rsbuild 默认的 distPath 配置,并设置 root: 'dist'。

    备注

    更多选项请参考 Rsbuild - distPath。

    示例

    使用 output 代替 dist(默认值):

    import { defineConfig } from '@lynx-js/rspeedy'
    export default defineConfig({
      output: {
        distPath: {
          root: './output',
        },
      },
    })
    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。