ota 拓展功能-黑名单&灰色定向上线

This commit is contained in:
eafonyang
2026-06-30 18:15:25 +08:00
parent 08da279275
commit 864040f45b
16 changed files with 1872 additions and 9 deletions
+17
View File
@@ -22,5 +22,22 @@ export default defineConfig({
changeOrigin: true
}
}
},
build: {
chunkSizeWarningLimit: 1000,
rollupOptions: {
onwarn(warning, warn) {
// 忽略第三方库中 /* #__PURE__ */ 注释位置警告
if (warning.code === 'INVALID_ANNOTATION') return
warn(warning)
},
output: {
manualChunks: {
'vendor-vue': ['vue', 'vue-router'],
'vendor-element-plus': ['element-plus'],
'vendor-element-icons': ['@element-plus/icons-vue'],
}
}
}
}
})