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