ota 拓展功能-黑名单&灰色定向上线
This commit is contained in:
@@ -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'],
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user