Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: link output.copy to Rsbuild #6337

Merged
merged 2 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 />
Loading