aa
This commit is contained in:
parent
de21fb92b7
commit
63131c85d5
@ -50,3 +50,29 @@ Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
|
||||
```
|
||||
Y
|
||||
```
|
||||
|
||||
# Vite
|
||||
|
||||
## 什麼是 Vite?
|
||||
Vite 是一個 **現代化的前端開發工具**,主要用於快速建立與運行 **React、Vue、Svelte、Solid.js 等前端框架**。
|
||||
它的核心目標是 **提供極速的開發體驗**,比傳統的 Webpack 快 10 倍以上。
|
||||
|
||||
### 使用Vite創建專案
|
||||
#### React(JavaScript)
|
||||
```
|
||||
npm create vite@latest my-react-app --template react
|
||||
```
|
||||
|
||||
#### React(TypeScript)
|
||||
```
|
||||
npm create vite@latest my-react-app --template react-ts
|
||||
```
|
||||
#### Vue 3(JavaScript)
|
||||
```
|
||||
npm create vite@latest my-vue-app --template vue
|
||||
```
|
||||
#### Vue 3(TypeScript)
|
||||
```
|
||||
npm create vite@latest my-vue-app --template vue-ts
|
||||
|
||||
```
|
Loading…
Reference in New Issue
Block a user