mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-02-01 19:24:58 +08:00
【代码优化】echarts 独立 chunk 打包
This commit is contained in:
parent
fb08357e8f
commit
53cef8b475
@ -71,8 +71,15 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
|
|||||||
drop_debugger: env.VITE_DROP_DEBUGGER === 'true',
|
drop_debugger: env.VITE_DROP_DEBUGGER === 'true',
|
||||||
drop_console: env.VITE_DROP_CONSOLE === 'true'
|
drop_console: env.VITE_DROP_CONSOLE === 'true'
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
rollupOptions: {
|
||||||
|
output: {
|
||||||
|
manualChunks: {
|
||||||
|
echarts: ['echarts'] // 将 echarts 单独打包,参考 https://gitee.com/yudaocode/yudao-ui-admin-vue3/issues/IAB1SX 讨论
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
optimizeDeps: { include, exclude }
|
optimizeDeps: { include, exclude }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user