feat: 初始化项目结构和配置
- 添加 .editorconfig, .gitignore, .prettierrc.json 等配置文件 - 创建项目目录结构,包括 src, test 等文件夹 - 添加 Vue 3 和 Vite 相关依赖 - 配置 ESLint, Prettier 等代码规范工具 - 添加 README.md 文件,说明项目的基本信息和操作指南
This commit is contained in:
18
vite.config.ts
Normal file
18
vite.config.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { fileURLToPath, URL } from 'node:url'
|
||||
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import vueDevTools from 'vite-plugin-vue-devtools'
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
vue(),
|
||||
vueDevTools(),
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url))
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user