mirror of
https://github.com/wushuo894/ani-rss.git
synced 2026-03-15 01:20:23 +00:00
refactor: 优化前端代码编译分包
This commit is contained in:
@@ -37,11 +37,12 @@ export default defineConfig({
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks: {
|
||||
vue: ['vue', '@vueuse/core', '@vicons/fa'],
|
||||
utils: ['crypto-js', 'markdown-it', 'markdown-it-github-alerts'],
|
||||
'vue': ['vue', '@vueuse/core', '@vicons/fa'],
|
||||
'utils': ['crypto-js', 'markdown-it', 'markdown-it-github-alerts'],
|
||||
'element-icon': ['@element-plus/icons-vue'],
|
||||
'artplayer': ['artplayer', 'artplayer-plugin-multiple-subtitles'],
|
||||
'shiki': ['shiki']
|
||||
'shiki': ['shiki'],
|
||||
'element-plus': ['element-plus']
|
||||
},
|
||||
chunkFileNames: () => {
|
||||
return `assets/[name]-[hash].js`;
|
||||
|
||||
Reference in New Issue
Block a user