feat: 完善发布运维前端体验

This commit is contained in:
湛兮
2026-06-12 17:53:41 +08:00
parent 3c964b68ed
commit 94649fe604
16 changed files with 428 additions and 277 deletions
+25
View File
@@ -7,6 +7,31 @@ import vue from '@vitejs/plugin-vue'
// https://vite.dev/config/
export default defineConfig({
plugins: [vue()],
build: {
rolldownOptions: {
output: {
codeSplitting: {
groups: [
{
name: 'element-plus-vendor',
test: /node_modules[\\/](?:\.pnpm[\\/].*?[\\/]node_modules[\\/])?(?:element-plus|@element-plus|@vueuse)[\\/]/,
priority: 30,
},
{
name: 'vue-vendor',
test: /node_modules[\\/](?:\.pnpm[\\/].*?[\\/]node_modules[\\/])?(?:vue|@vue|vue-router|pinia)[\\/]/,
priority: 20,
},
{
name: 'vendor',
test: /node_modules[\\/]/,
priority: 10,
},
],
},
},
},
},
server: {
port: 4301,
proxy: {