File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,10 +116,14 @@ create-vite 是一个快速生成主流框架基础模板的工具。查看 Awes
116116
117117对于一个 ` https://github.com/user/project ` 中的模板,可以尝试使用 ` https://github.stackblitz.com/user/project ` (即在项目 URL 的 ` github ` 后添加 ` .stackblitz ` )。
118118
119+ <<<<<<< HEAD
119120你也可以用如 [ 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
120124
121125``` bash
122- npx degit user/project#main my-project
126+ npx tiged user/project my-project
123127cd my-project
124128
125129npm install
Original file line number Diff line number Diff line change @@ -114,13 +114,25 @@ export default defineConfig({
114114
115115精简工作的例子:
116116
117+ <<<<<<< HEAD
117118- 使用 CSS 而不是 Sass/Less/Stylus(可以由 PostCSS 处理嵌套)
118119- 不要将 SVG 转换为 UI 框架组件(例如 React、Vue 等)。请将其作为字符串或 URL 导入。
119120- 当使用 ` @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
120126
121127使用更原生化工具链的例子:
122128
129+ <<<<<<< HEAD
123130使用更原生化的工具链往往会带来更大的安装大小,因此在启动新的 Vite 项目时不是默认的。但对于较大的应用程序来说,这可能是值得的。
124131
125132- 尝试实验性的 [ LightningCSS] ( https://github.com/vitejs/vite/discussions/13835 )
126133- 使用 [ ` @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
Original file line number Diff line number Diff line change 11{
2+ <<<<<<< HEAD
23 "name" : " vite-docs-cn" ,
34 "version" : " 8.0.0-beta.0" ,
45 "description" : " Vite.js documentation Chinese translation." ,
3839 "gitHooks" : {
3940 "commit-msg" : " node scripts/verifyCommit.js"
4041 }
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
4166}
You can’t perform that action at this time.
0 commit comments