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/configure/app/output/copy.md.
  • 简体中文
  • output.copy

    • 类型: Rspack.CopyRspackPluginOptions | Rspack.CopyRspackPluginOptions['patterns']
    • 默认值: undefined

    将指定的文件或目录拷贝到构建输出目录中,基于 rspack.CopyRspackPlugin 实现。

    Info

    该配置项的使用方式与 Rsbuild 完全一致。详细信息请参考 Rsbuild - output.copy。