openRepoPortalV2打包命名修改

This commit is contained in:
fmk1023
2025-11-28 14:57:04 +08:00
parent 0ab4649909
commit d7dfa9bf8d
13 changed files with 17 additions and 17 deletions

View File

@@ -62,7 +62,7 @@ export default (config: any) => {
},
build: {
outDir: 'openRepoPortal', // 将打包后的文件夹名改为 openRepoPortal
outDir: 'openRepoPortalV2', // 将打包后的文件夹名改为 openRepoPortal
// sourcemap: config.mode !== 'production',
minify: 'terser', // 确保使用 terser 进行压缩
terserOptions: {
@@ -83,7 +83,7 @@ export default (config: any) => {
) {
if (type === 'asset') {
// return env.VITE_STATIC_HOST + '/' + filename;
return `/openRepoPortal/${filename}`;
return `/openRepoPortalV2/${filename}`;
}
}
}