Skip to content

Commit

Permalink
fix: update config
Browse files Browse the repository at this point in the history
  • Loading branch information
chao921125 committed Apr 16, 2024
1 parent 85ba5ea commit 5a6667a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default defineConfig(({ command, mode }: ConfigEnv): UserConfig => {
}
const defaultConfig: UserConfig = {
root: path.resolve(__dirname, ""), // "./public/index.html", // 入口,可以指定到public文件夹
base: isBuild ? "./" : envConfig.VITE_PUBLIC_PATH, // 公共基础路径
base: isBuild ? envConfig.VITE_PUBLIC_PATH : "./", // 公共基础路径
// mode: "development", // 指令覆盖构建模式 --mode
define: {
// 定义全局常量替换方式
Expand Down

0 comments on commit 5a6667a

Please sign in to comment.