Skip to content

Commit

Permalink
docs: link output.copy to Rsbuild (#6337)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Oct 9, 2024
1 parent 9c8f953 commit ed0d1f9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/angry-bats-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@modern-js/main-doc': patch
---

docs: link `output.copy` to Rsbuild
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: copy
configName: output.copy
---

# output.copy
Expand All @@ -9,4 +10,6 @@ title: copy

Copies the specified file or directory to the dist directory, implemented based on [rspack.CopyRspackPlugin](https://rspack.dev/zh/plugins/rspack/copy-rspack-plugin).

For more detailed configuration, please refer to: [rspack.CopyRspackPlugin](https://rspack.dev/zh/plugins/rspack/copy-rspack-plugin).
import RsbuildConig from '@site-docs-en/components/rsbuild-config-tooltip';

<RsbuildConig />
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
---
title: copy
configName: output.copy
---

# output.copy

- **类型:** `Rspack.CopyRspackPluginOptions | Rspack.CopyRspackPluginOptions['patterns']`
- **默认值:** `undefined`


将指定的文件或目录拷贝到构建输出目录中,基于 [rspack.CopyRspackPlugin](https://rspack.dev/zh/plugins/rspack/copy-rspack-plugin) 实现。

更详细的配置项请参考:[rspack.CopyRspackPlugin](https://rspack.dev/zh/plugins/rspack/copy-rspack-plugin)文档。
import RsbuildConig from '@site-docs/components/rsbuild-config-tooltip';

<RsbuildConig />

0 comments on commit ed0d1f9

Please sign in to comment.