Skip to content

Commit 25068b8

Browse files
Merge pull request #635 from vitejs/sync-672e43aa-1
docs(en): merge docs-cn/sync-docs into docs-cn/dev @ 672e43a
2 parents 07fd47a + 64a2de7 commit 25068b8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

config/build-options.md

+8
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,14 @@ npm add -D terser
209209
210210
默认情况下,若 `outDir``root` 目录下,则 Vite 会在构建时清空该目录。若 `outDir` 在根目录之外则会抛出一个警告避免意外删除掉重要的文件。可以设置该选项来关闭这个警告。该功能也可以通过命令行参数 `--emptyOutDir` 来使用。
211211
212+
## build.copyPublicDir {#build-copypublicdir}
213+
214+
- **实验性特性**
215+
- **类型:** `boolean`
216+
- **默认:** `true`
217+
218+
默认情况下,Vite 会在构建阶段将 `publicDir` 目录中的所有文件复制到 `outDir` 目录中。可以通过设置该选项为 `false` 来禁用该行为。
219+
212220
## build.reportCompressedSize {#build-reportcompressedsize}
213221
214222
- **类型:** `boolean`

0 commit comments

Comments
 (0)