# d7c-vue-vite
**Repository Path**: d7c/d7c-vue-vite
## Basic Information
- **Project Name**: d7c-vue-vite
- **Description**: vue 新一代构建工具 Vite。
- **Primary Language**: NodeJS
- **License**: AGPL-3.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2023-01-16
- **Last Updated**: 2023-12-06
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# d7c-vue-vite
This template should help get you started developing with Vue 3 in Vite.
## Recommended IDE Setup
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
## Customize configuration
See [Vite Configuration Reference](https://vitejs.dev/config/).
## Project Setup
```sh
npm install
```
### Compile and Hot-Reload for Development
```sh
npm run dev
```
### Compile and Minify for Production
```sh
npm run build
```
### Lint with [ESLint](https://eslint.org/)
```sh
npm run lint
```
## 资料
[Vite 中文官网](https://cn.vitejs.dev/) + [create-vue](https://github.com/vuejs/create-vue).
## 安装步骤
## 项目配置
### 自动打开浏览器
package.json
```
"dev": "vite --open",
```
### 配置路径别名
vite.config.js
```javascript
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
'@components': resolve(__dirname, './src/components'),
'@router': resolve(__dirname, './src/router'),
'@stores': resolve(__dirname, './src/stores'),
'@views': resolve(__dirname, './src/views'),
}
}
```