mirror of
https://github.com/pure-admin/pure-admin-thin.git
synced 2025-12-14 22:30:31 +08:00
feat: 添加打包是否启动cdn替换本地库配置,默认false不启动
This commit is contained in:
@@ -27,6 +27,7 @@ const __APP_INFO__ = {
|
||||
|
||||
export default ({ command, mode }: ConfigEnv): UserConfigExport => {
|
||||
const {
|
||||
VITE_CDN,
|
||||
VITE_PORT,
|
||||
VITE_LEGACY,
|
||||
VITE_PUBLIC_PATH,
|
||||
@@ -59,7 +60,7 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => {
|
||||
}
|
||||
: null
|
||||
},
|
||||
plugins: getPluginsList(command, VITE_LEGACY),
|
||||
plugins: getPluginsList(command, VITE_LEGACY, VITE_CDN),
|
||||
optimizeDeps: {
|
||||
include: ["pinia", "vue-i18n", "lodash-es", "@vueuse/core", "dayjs"],
|
||||
exclude: ["@pureadmin/theme/dist/browser-utils"]
|
||||
|
||||
Reference in New Issue
Block a user