feat(web): vite + vue 3 + ts + tailwind + naive ui scaffolding

This commit is contained in:
2026-04-29 07:32:32 +08:00
parent b72de98f15
commit aef7b0b661
11 changed files with 3244 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import tailwindcss from '@tailwindcss/vite'
import { fileURLToPath, URL } from 'node:url'
export default defineConfig({
plugins: [vue(), tailwindcss()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
server: {
port: 5173,
proxy: {
'/api': 'http://localhost:8080',
'/healthz': 'http://localhost:8080',
},
},
build: {
outDir: 'dist',
emptyOutDir: true,
},
})