Skip to content

Commit cfbefb1

Browse files
committed
perf: 精简代码
1 parent de34990 commit cfbefb1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

vite.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ import svgLoader from "vite-svg-loader"
1313

1414
// Configuring Vite: https://cn.vite.dev/config
1515
export default defineConfig(({ mode }) => {
16-
const root = process.cwd()
17-
const { VITE_PUBLIC_PATH } = loadEnv(mode, root, "") as ImportMetaEnv
16+
const { VITE_PUBLIC_PATH } = loadEnv(mode, process.cwd(), "") as ImportMetaEnv
1817
return {
1918
// 开发或打包构建时用到的公共基础路径
2019
base: VITE_PUBLIC_PATH,

0 commit comments

Comments
 (0)