This commit is contained in:
Tim_note 2025-02-08 01:28:28 +08:00
parent de21fb92b7
commit 63131c85d5

View File

@ -50,3 +50,29 @@ Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
``` ```
Y Y
``` ```
# Vite
## 什麼是 Vite
Vite 是一個 **現代化的前端開發工具**,主要用於快速建立與運行 **React、Vue、Svelte、Solid.js 等前端框架**
它的核心目標是 **提供極速的開發體驗**,比傳統的 Webpack 快 10 倍以上。
### 使用Vite創建專案
#### ReactJavaScript
```
npm create vite@latest my-react-app --template react
```
#### ReactTypeScript
```
npm create vite@latest my-react-app --template react-ts
```
#### Vue 3JavaScript
```
npm create vite@latest my-vue-app --template vue
```
#### Vue 3TypeScript
```
npm create vite@latest my-vue-app --template vue-ts
```