add new chinese translations
This commit is contained in:
22
pages.zh/common/vite.md
Normal file
22
pages.zh/common/vite.md
Normal 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`
|
Reference in New Issue
Block a user