Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-20 10:59:21 +08:00

perf: 精简代码

This commit is contained in:
pany 2024-12-02 18:37:13 +08:00
parent de349901df
commit cfbefb10ab

View File

@ -13,8 +13,7 @@ import svgLoader from "vite-svg-loader"
// Configuring Vite: https://cn.vite.dev/config
export default defineConfig(({ mode }) => {
const root = process.cwd()
const { VITE_PUBLIC_PATH } = loadEnv(mode, root, "") as ImportMetaEnv
const { VITE_PUBLIC_PATH } = loadEnv(mode, process.cwd(), "") as ImportMetaEnv
return {
// 开发或打包构建时用到的公共基础路径
base: VITE_PUBLIC_PATH,