mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-06 20:43:03 +08:00
更新 Vite 配置,添加 dummy 远程模块,简化共享库列表,提升代码可读性和维护性。
This commit is contained in:
@@ -37,8 +37,12 @@ export default defineConfig({
|
||||
filename: 'remoteEntry.js',
|
||||
remotes: {
|
||||
// 动态remotes将在运行时注入
|
||||
dummy: {
|
||||
external: '',
|
||||
format: 'var',
|
||||
},
|
||||
},
|
||||
shared: ['vue', 'vuetify', 'vuetify/styles'],
|
||||
shared: ['vue', 'vuetify'],
|
||||
}),
|
||||
VitePWA({
|
||||
injectRegister: 'script',
|
||||
|
||||
Reference in New Issue
Block a user