优化 Vite 配置,更新共享库列表,移除不必要的 Rollup 选项,并简化远程模块加载逻辑,提升代码可读性和维护性。

This commit is contained in:
jxxghp
2025-05-08 23:32:13 +08:00
parent 4e3a61b8a8
commit 3199392637
3 changed files with 2 additions and 72 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ export default defineConfig({
remotes: {
// 动态remotes将在运行时注入
},
shared: ['vue', 'vuetify', 'pinia', 'vue-i18n', 'vue-router', 'axios'],
shared: ['vue', 'vuetify', 'vuetify/styles'],
}),
VitePWA({
injectRegister: 'script',