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:
4
.gitignore
vendored
4
.gitignore
vendored
@ -7,6 +7,10 @@ dist-ssr
|
|||||||
apps/*/dist
|
apps/*/dist
|
||||||
packages/*/dist
|
packages/*/dist
|
||||||
|
|
||||||
|
# --- 分析报告文件 ---
|
||||||
|
report.html
|
||||||
|
apps/*/report.html
|
||||||
|
|
||||||
# --- 日志文件 ---
|
# --- 日志文件 ---
|
||||||
logs
|
logs
|
||||||
*.log
|
*.log
|
||||||
|
|||||||
@ -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
Reference in New Issue
Block a user