This commit is contained in:
@ -6,7 +6,7 @@ export default defineConfig(({ mode }) => {
|
||||
const env = loadEnv(mode, process.cwd());
|
||||
|
||||
return {
|
||||
base: './', //打包后的相对路径
|
||||
base: env.VITE_PUBLIC || './', //使用环境变量设置资源路径,默认为相对路径
|
||||
|
||||
server: {
|
||||
host: true,
|
||||
|
Reference in New Issue
Block a user