Skip to content

Commit 376cfb3

Browse files
committed
docs(en): merging all conflicts
2 parents 07fd47a + 672e43a commit 376cfb3

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

config/build-options.md

+12
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,19 @@ npm add -D terser
209209
210210
默认情况下,若 `outDir``root` 目录下,则 Vite 会在构建时清空该目录。若 `outDir` 在根目录之外则会抛出一个警告避免意外删除掉重要的文件。可以设置该选项来关闭这个警告。该功能也可以通过命令行参数 `--emptyOutDir` 来使用。
211211
212+
<<<<<<< HEAD
212213
## build.reportCompressedSize {#build-reportcompressedsize}
214+
=======
215+
## build.copyPublicDir
216+
217+
- **Experimental**
218+
- **Type:** `boolean`
219+
- **Default:** `true`
220+
221+
By default, Vite will copy files from the `publicDir` into the `outDir` on build. Set to `false` to disable this.
222+
223+
## build.reportCompressedSize
224+
>>>>>>> 672e43aa80d4d1735cc86e6fa987da228f4fd517
213225
214226
- **类型:** `boolean`
215227
- **默认:** `true`

guide/why.md

+4
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ Vite 同时利用 HTTP 头来加速整个页面的重新加载(再次让浏览
5151

5252
### 为何不用 ESBuild 打包? {#why-not-bundle-with-esbuild}
5353

54+
<<<<<<< HEAD
5455
虽然 `esbuild` 快得惊人,并且已经是一个在构建库方面比较出色的工具,但一些针对构建 _应用_ 的重要功能仍然还在持续开发中 —— 特别是代码分割和 CSS 处理方面。就目前来说,Rollup 在应用打包方面更加成熟和灵活。尽管如此,当未来这些功能稳定后,我们也不排除使用 `esbuild` 作为生产构建器的可能。
56+
=======
57+
While `esbuild` is extremely fast and is already a very capable bundler for libraries, some of the important features needed for bundling _applications_ are still work in progress - in particular code-splitting and CSS handling. For the time being, Rollup is more mature and flexible in these regards. That said, we won't rule out the possibility of using `esbuild` for production builds when it stabilizes these features in the future.
58+
>>>>>>> 672e43aa80d4d1735cc86e6fa987da228f4fd517
5559
5660
## Vite 与 X 的区别是? {#how-is-vite-different-from-x}
5761

0 commit comments

Comments
 (0)