fix: vue.config.js

修复publicPath空串问题、默认是"/"
This commit is contained in:
Junsen Huang
2025-04-24 11:45:24 +08:00
committed by GitHub
parent 21a08b3c7a
commit b5b4c5ced7
+1 -1
View File
@@ -52,7 +52,7 @@ module.exports = defineConfig({
overlay: false, // 不显示 webpack 错误覆盖层
},
},
publicPath: process.env.VUE_APP_PUBLIC_PATH || "",
publicPath: process.env.VUE_APP_PUBLIC_PATH || "/",
chainWebpack: config => {
// 修改 HTML 插件配置,动态插入 CDN 链接