修复: 回到顶部按钮和进度条不显示的bug

This commit is contained in:
2026-09-21 09:47:35 +08:00
parent 219cb712a6
commit ec80ea7bd0
7 changed files with 185 additions and 10 deletions
+9
View File
@@ -84,6 +84,15 @@ if [ "$PAGES" -lt 5 ]; then
fi
fi
# CSS 自检:拦「滚动驱动动画被压缩器并进 animation 简写」这类只在构建产物里出现、
# 本地 dev 完全看不出来的回归(2026-09-21 的回到顶部按钮事故)。
# pnpm build 里已经跑过一次,这里再跑是为了覆盖 --skip-build 直接用旧 dist/ 的情况。
if ! node scripts/verify-build-css.mjs; then
echo ""
echo "❌ CSS 自检未通过,已中止部署(没有推送任何内容)"
exit 1
fi
# ---------- 3. 生产环境确认 ----------
if [ "$DO_CLOUD" -eq 1 ] && [ "$DRY_RUN" -eq 0 ] && [ "$ASSUME_YES" -eq 0 ]; then
echo ""