mirror of
https://github.com/pure-admin/pure-admin-thin.git
synced 2025-12-14 22:30:31 +08:00
feat: 打包构建添加可选 gzip 与 brotli 压缩模式
This commit is contained in:
@@ -30,6 +30,7 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => {
|
||||
VITE_CDN,
|
||||
VITE_PORT,
|
||||
VITE_LEGACY,
|
||||
VITE_COMPRESSION,
|
||||
VITE_PUBLIC_PATH,
|
||||
VITE_PROXY_DOMAIN,
|
||||
VITE_PROXY_DOMAIN_REAL
|
||||
@@ -60,7 +61,7 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => {
|
||||
}
|
||||
: null
|
||||
},
|
||||
plugins: getPluginsList(command, VITE_LEGACY, VITE_CDN),
|
||||
plugins: getPluginsList(command, VITE_LEGACY, VITE_CDN, VITE_COMPRESSION),
|
||||
optimizeDeps: {
|
||||
include: ["pinia", "vue-i18n", "lodash-es", "@vueuse/core", "dayjs"],
|
||||
exclude: ["@pureadmin/theme/dist/browser-utils"]
|
||||
|
||||
Reference in New Issue
Block a user