Skip to content

Commit 672e43a

Browse files
authored
feat(build): experimental copyPublicDir option (#10550)
1 parent 1201f1e commit 672e43a

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 @@ Set to `false` to disable writing the bundle to disk. This is mostly used in [pr
209209
210210
By default, Vite will empty the `outDir` on build if it is inside project root. It will emit a warning if `outDir` is outside of root to avoid accidentally removing important files. You can explicitly set this option to suppress the warning. This is also available via command line as `--emptyOutDir`.
211211
212+
## build.copyPublicDir
213+
214+
- **Experimental**
215+
- **Type:** `boolean`
216+
- **Default:** `true`
217+
218+
By default, Vite will copy files from the `publicDir` into the `outDir` on build. Set to `false` to disable this.
219+
212220
## build.reportCompressedSize
213221
214222
- **Type:** `boolean`

0 commit comments

Comments
 (0)