feat: 完善发布运维前端体验
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user