feat: 初始化多个小程序和前端项目

- 新建多个小程序的 app.js、app.json 和 app.wxss 文件
- 新建多个前端项目的 App.vue 文件
- 添加 .gitignore 文件和后端 API 的 .env.example 文件
This commit is contained in:
ylweng
2025-08-18 23:48:54 +08:00
commit 1dbfbebd05
81 changed files with 5791 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': resolve(__dirname, 'src')
}
},
server: {
port: 3005,
open: true,
proxy: {
'/api': {
target: 'http://localhost:8000',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}
}
},
build: {
outDir: 'dist',
assetsDir: 'assets'
}
})