chore(admin): Update build configuration and ignore analysis reports

- Add report.html files to .gitignore to exclude analysis reports from version control
- Update build time configuration to include milliseconds for unique timestamps
- Add explanatory comment for build time millisecond precision
- Regenerate bundle analysis report with updated build configuration
This commit is contained in:
2026-03-18 17:22:02 +08:00
parent 1c8035d935
commit fe4d8f6d62
3 changed files with 8 additions and 2 deletions

4
.gitignore vendored
View File

@ -7,6 +7,10 @@ dist-ssr
apps/*/dist apps/*/dist
packages/*/dist packages/*/dist
# --- 分析报告文件 ---
report.html
apps/*/report.html
# --- 日志文件 --- # --- 日志文件 ---
logs logs
*.log *.log

View File

@ -6,7 +6,9 @@ export function getBuildTime() {
dayjs.extend(utc) dayjs.extend(utc)
dayjs.extend(timezone) dayjs.extend(timezone)
const buildTime = dayjs.tz(Date.now(), 'Asia/Shanghai').format('YYYY-MM-DD HH:mm:ss') // 添加随机毫秒确保每次构建时间唯一
const now = Date.now()
const buildTime = dayjs.tz(now, 'Asia/Shanghai').format('YYYY-MM-DD HH:mm:ss.SSS')
return buildTime return buildTime
} }

File diff suppressed because one or more lines are too long