打包配置修改

This commit is contained in:
付民康
2025-03-20 16:46:20 +08:00
parent 2bc3c89f38
commit 8d3169b28d
3 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View File

@@ -12,6 +12,7 @@ lerna-debug.log*
node_modules
.DS_Store
dist
openRepoPortal
dist-ssr
coverage
*.local

View File

@@ -10,7 +10,7 @@
</div>
<div class="g-user-drawer-info-list">
<div class="g-user-drawer-info-list-name">
<span class="break-all">{{ accountInfo.username ? accountInfo.username[0] : '' }}</span>
<span class="break-all">{{ accountInfo.username ? accountInfo.username : '' }}</span>
<GIcon class="close-icon" name="gt-close" size="12" @click="handleClose" />
</div>
<div class="g-user-drawer-info-list-id break-all">@{{ accountInfo.username }}</div>

View File

@@ -61,6 +61,7 @@ export default (config: any) => {
},
build: {
outDir: 'openRepoPortal', // 将打包后的文件夹名改为 openRepoPortal
// sourcemap: config.mode !== 'production',
minify: 'terser', // 确保使用 terser 进行压缩
terserOptions: {