We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de34990 commit cfbefb1Copy full SHA for cfbefb1
vite.config.ts
@@ -13,8 +13,7 @@ import svgLoader from "vite-svg-loader"
13
14
// Configuring Vite: https://cn.vite.dev/config
15
export default defineConfig(({ mode }) => {
16
- const root = process.cwd()
17
- const { VITE_PUBLIC_PATH } = loadEnv(mode, root, "") as ImportMetaEnv
+ const { VITE_PUBLIC_PATH } = loadEnv(mode, process.cwd(), "") as ImportMetaEnv
18
return {
19
// 开发或打包构建时用到的公共基础路径
20
base: VITE_PUBLIC_PATH,
0 commit comments