build: 将基础路径从项目名称改为相对路径
修改vite配置中的base路径,从`/${name}/`改为`./`,以支持静态文件的相对路径访问
This commit is contained in:
1 parent
989ae39cd7
commit
2bafad6a78
1 file changed
+1
-1
+1
-1
@@ -38,7 +38,7 @@ export default defineConfig(({ mode }) => {
|
||||
}
|
||||
}
|
||||
return {
|
||||
base: `/${name}/`,
|
||||
base: './',
|
||||
publicDir: false,
|
||||
build: {
|
||||
rollupOptions: {
|
||||
|
||||
Reference in new issue
Block a user