Skip to content

Commit

Permalink
perf: 精简代码
Browse files Browse the repository at this point in the history
  • Loading branch information
pany-ang committed Dec 2, 2024
1 parent de34990 commit cfbefb1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cfbefb1

Please sign in to comment.