Skip to content

Commit 1090591

Browse files
authored
Merge pull request #1487 from lxKylin/c9d2-1
docs: update content
2 parents 277a0e7 + 7209497 commit 1090591

File tree

3 files changed

+4
-46
lines changed

3 files changed

+4
-46
lines changed

guide/index.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,7 @@ create-vite 是一个快速生成主流框架基础模板的工具。查看 Awes
116116

117117
对于一个 `https://github.com/user/project` 中的模板,可以尝试使用 `https://github.stackblitz.com/user/project`(即在项目 URL 的 `github` 后添加 `.stackblitz`)。
118118

119-
<<<<<<< HEAD
120-
你也可以用如 [degit](https://github.com/Rich-Harris/degit) 之类的工具,使用社区模版来搭建项目。假设项目在 GitHub 上并使用 `main` 作为默认分支,可以使用以下命令创建本地副本:
121-
=======
122-
You can also use a tool like [tiged](https://github.com/tiged/tiged) to scaffold your project with one of the templates. Assuming the project is on GitHub and uses `main` as the default branch, you can create a local copy using:
123-
>>>>>>> a6a5c9d25c4142c49981c46aaac6919007432db9
119+
你也可以用如 [tiged](https://github.com/tiged/tiged) 之类的工具,使用社区模版来搭建项目。假设项目在 GitHub 上并使用 `main` 作为默认分支,可以使用以下命令创建本地副本:
124120

125121
```bash
126122
npx tiged user/project my-project

guide/performance.md

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -114,25 +114,12 @@ export default defineConfig({
114114

115115
精简工作的例子:
116116

117-
<<<<<<< HEAD
118-
- 使用 CSS 而不是 Sass/Less/Stylus(可以由 PostCSS 处理嵌套)
117+
- 使用 CSS 而不是 Sass/Less/Stylus(可以由 PostCSS / Lightning CSS 处理嵌套)
119118
- 不要将 SVG 转换为 UI 框架组件(例如 React、Vue 等)。请将其作为字符串或 URL 导入。
120-
- 当使用 `@vitejs/plugin-react` 时,避免配置 Babel 选项,这样它就会在构建期间跳过转换(只使用 esbuild)。
121-
=======
122-
- Use CSS instead of Sass/Less/Stylus when possible (nesting can be handled by PostCSS / Lightning CSS)
123-
- Don't transform SVGs into UI framework components (React, Vue, etc.). Import them as strings or URLs instead.
124-
- When using `@vitejs/plugin-react`, avoid configuring the Babel options, so it skips the transformation during build (only Oxc will be used).
125-
>>>>>>> a6a5c9d25c4142c49981c46aaac6919007432db9
119+
- 当使用 `@vitejs/plugin-react` 时,避免配置 Babel 选项,这样它就会在构建期间跳过转换(只使用 Oxc)。
126120

127121
使用更原生化工具链的例子:
128122

129-
<<<<<<< HEAD
130-
使用更原生化的工具链往往会带来更大的安装大小,因此在启动新的 Vite 项目时不是默认的。但对于较大的应用程序来说,这可能是值得的。
123+
尽管 Vite 核心基于原生工具,但某些功能仍默认使用非原生工具,以提供更好的兼容性和功能集。但对于较大的应用程序来说,这可能是值得的。
131124

132125
- 尝试实验性的 [LightningCSS](https://github.com/vitejs/vite/discussions/13835)
133-
- 使用 [`@vitejs/plugin-react-swc`](https://github.com/vitejs/vite-plugin-react-swc) 代替 `@vitejs/plugin-react`
134-
=======
135-
While Vite core is based on native tooling, some features still use non-native tooling by default to provide better compatibility and feature set. But it may be worth the cost for larger applications.
136-
137-
- Try out the experimental support for [LightningCSS](https://github.com/vitejs/vite/discussions/13835)
138-
>>>>>>> a6a5c9d25c4142c49981c46aaac6919007432db9

package.json

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
<<<<<<< HEAD
32
"name": "vite-docs-cn",
43
"version": "8.0.0-beta.0",
54
"description": "Vite.js documentation Chinese translation.",
@@ -39,28 +38,4 @@
3938
"gitHooks": {
4039
"commit-msg": "node scripts/verifyCommit.js"
4140
}
42-
=======
43-
"name": "@vitejs/monorepo-docs",
44-
"private": true,
45-
"type": "module",
46-
"scripts": {
47-
"typecheck": "vue-tsc",
48-
"docs": "vitepress dev",
49-
"docs-build": "vitepress build",
50-
"docs-serve": "vitepress serve"
51-
},
52-
"devDependencies": {
53-
"@shikijs/vitepress-twoslash": "^3.20.0",
54-
"@types/express": "^5.0.6",
55-
"feed": "^5.1.0",
56-
"gsap": "^3.14.2",
57-
"markdown-it-image-size": "^15.0.1",
58-
"oxc-minify": "^0.102.0",
59-
"vitepress": "^2.0.0-alpha.15",
60-
"vitepress-plugin-group-icons": "^1.6.5",
61-
"vitepress-plugin-llms": "^1.9.3",
62-
"vue": "^3.5.25",
63-
"vue-tsc": "^3.1.8"
64-
}
65-
>>>>>>> a6a5c9d25c4142c49981c46aaac6919007432db9
6641
}

0 commit comments

Comments
 (0)