add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

22
pages.zh/common/vite.md Normal file
View File

@@ -0,0 +1,22 @@
# Vite
> 创建一个 Vite 项目。
> 用于构建 JavaScript 项目。
> 可用模板vanilla、vanilla-ts、vue、vue-ts、react、react-ts、react-swc、react-swc-ts、preact、preact-ts、lit、lit-ts、svelte、svelte-ts。
> 更多信息:<https://vitejs.dev/guide>。
- 使用 `npm` 6.x 进行设置:
`npm create vite@latest my-react-app --template react-ts`
- 使用 `npm` 7+ 进行设置,需要额外的双破折号:
`npm create vite@latest my-react-app -- --template react-ts`
- 使用 `yarn` 进行设置:
`yarn create vite my-react-app --template react-ts`
- 使用 `pnpm` 进行设置:
`pnpm create vite my-react-app --template react-ts`