This commit is contained in:
parent
2ff498b399
commit
cfc1917547
@ -24,7 +24,7 @@ export default defineConfig(({ mode }) => {
|
|||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
'@': fileURLToPath(new URL('./src', import.meta.url))
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
cors: true,
|
cors: true,
|
||||||
@ -46,6 +46,18 @@ export default defineConfig(({ mode }) => {
|
|||||||
rewrite: () => "/"
|
rewrite: () => "/"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
build: {
|
||||||
|
rollupOptions: {
|
||||||
|
output: {
|
||||||
|
manualChunks: {
|
||||||
|
'vue-core': ['vue', 'vue-router', 'pinia'],
|
||||||
|
'element-plus': ['element-plus'],
|
||||||
|
'editor': ['@wangeditor/editor', '@wangeditor/editor-for-vue'],
|
||||||
|
'icons': ['@element-plus/icons-vue', 'vue-icons-plus']
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user