SAP打包配置修改

This commit is contained in:
fmk1023
2025-12-25 14:54:23 +08:00
parent b80ff647c9
commit 29fa1a2199
14 changed files with 18 additions and 18 deletions

View File

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