openRepoPortalV2打包命名修改
This commit is contained in:
@@ -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}`;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user