mirror of
https://github.com/pure-admin/pure-admin-thin.git
synced 2025-12-14 22:30:31 +08:00
release: update 3.8.0
This commit is contained in:
@@ -2,6 +2,7 @@ import dayjs from "dayjs";
|
||||
import { resolve } from "path";
|
||||
import pkg from "./package.json";
|
||||
import { warpperEnv } from "./build";
|
||||
import { include } from "./build/optimize";
|
||||
import { getPluginsList } from "./build/plugins";
|
||||
import { UserConfigExport, ConfigEnv, loadEnv } from "vite";
|
||||
|
||||
@@ -26,13 +27,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,9 +45,10 @@ 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),
|
||||
// https://cn.vitejs.dev/config/dep-optimization-options.html#dep-optimization-options
|
||||
optimizeDeps: {
|
||||
include: ["pinia", "lodash-es", "@vueuse/core", "dayjs"],
|
||||
include,
|
||||
exclude: ["@pureadmin/theme/dist/browser-utils"]
|
||||
},
|
||||
build: {
|
||||
|
||||
Reference in New Issue
Block a user