Commit 5b5ffb84 by YunaiV

feat: update vite.config.ts to add manual chunks for form-create and form-designer

parent 2b44f1d6
...@@ -76,7 +76,9 @@ export default ({command, mode}: ConfigEnv): UserConfig => { ...@@ -76,7 +76,9 @@ export default ({command, mode}: ConfigEnv): UserConfig => {
rollupOptions: { rollupOptions: {
output: { output: {
manualChunks: { manualChunks: {
echarts: ['echarts'] // 将 echarts 单独打包,参考 https://gitee.com/yudaocode/yudao-ui-admin-vue3/issues/IAB1SX 讨论 echarts: ['echarts'], // 将 echarts 单独打包,参考 https://gitee.com/yudaocode/yudao-ui-admin-vue3/issues/IAB1SX 讨论
'form-create': ['@form-create/element-ui'], // 参考 https://github.com/yudaocode/yudao-ui-admin-vue3/issues/148 讨论
'form-designer': ['@form-create/designer'],
} }
}, },
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment