Skip to content

Commit 64a2de7

Browse files
Merge pull request #637 from alexzhang1030/sync-672e43aa-1
docs: fix 672e43a-1 branch conflict
2 parents 376cfb3 + e2f1fa3 commit 64a2de7

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

config/build-options.md

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

guide/why.md

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

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

54-
<<<<<<< HEAD
5554
虽然 `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
5955

6056
## Vite 与 X 的区别是? {#how-is-vite-different-from-x}
6157

0 commit comments

Comments
 (0)