mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2026-01-20 16:53:37 +08:00
chore: 删除 @vitejs/plugin-legacy,vue3 无法通过任何工具使其支持ie
This commit is contained in:
@@ -26,13 +26,8 @@ const __APP_INFO__ = {
|
||||
};
|
||||
|
||||
export default ({ command, mode }: ConfigEnv): UserConfigExport => {
|
||||
const {
|
||||
VITE_CDN,
|
||||
VITE_PORT,
|
||||
VITE_LEGACY,
|
||||
VITE_COMPRESSION,
|
||||
VITE_PUBLIC_PATH
|
||||
} = warpperEnv(loadEnv(mode, root));
|
||||
const { VITE_CDN, VITE_PORT, VITE_COMPRESSION, VITE_PUBLIC_PATH } =
|
||||
warpperEnv(loadEnv(mode, root));
|
||||
return {
|
||||
base: VITE_PUBLIC_PATH,
|
||||
root,
|
||||
@@ -49,7 +44,7 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => {
|
||||
// 本地跨域代理 https://cn.vitejs.dev/config/server-options.html#server-proxy
|
||||
proxy: {}
|
||||
},
|
||||
plugins: getPluginsList(command, VITE_LEGACY, VITE_CDN, VITE_COMPRESSION),
|
||||
plugins: getPluginsList(command, 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