优化,贴图

This commit is contained in:
zhongluofeng
2026-08-07 18:09:13 +08:00
parent e09b0567d6
commit d09599fa95
40 changed files with 1627 additions and 493 deletions
+17
View File
@@ -23,6 +23,23 @@ export default defineConfig(async () => ({
input: {
main: fileURLToPath(new URL("./index.html", import.meta.url)),
},
// 分包策略:vendor 独立 chunk,业务迭代时不强制重下载依赖
// - vue/pinia/@vueuse: Vue 生态核心,变更频率低
// - reka-ui/@lucide: UI 组件库,体积较大且稳定
// - tauri: Tauri 前端 API,仅在 Tauri 升级时变化
output: {
manualChunks: {
'vue-vendor': ['vue', 'pinia', '@vueuse/core'],
'ui-vendor': ['reka-ui', '@lucide/vue'],
'tauri-vendor': [
'@tauri-apps/api',
'@tauri-apps/plugin-autostart',
'@tauri-apps/plugin-dialog',
'@tauri-apps/plugin-global-shortcut',
'@tauri-apps/plugin-opener',
],
},
},
},
},