Coverage build serves app.css under another file's hash #464

Closed
opened 2026-11-14 16:11:50 -08:00 by rays · 1 comment
Owner

With IPX_COVERAGE=1, web/build.mts names the stylesheet /app.css?v= (buildPage passes minify: false) but writes app.css minified (buildStyle() defaults to minify). The service worker's check from #449 sees the mismatch and reloads the page, and its 30 s throttle then swallows the reload the #449 test waits for: that test fails under sh scripts/coverage.sh api every time and passes without it. Production builds are unaffected (both minified).

With IPX_COVERAGE=1, web/build.mts names the stylesheet /app.css?v=<hash of it unminified> (buildPage passes minify: false) but writes app.css minified (buildStyle() defaults to minify). The service worker's check from #449 sees the mismatch and reloads the page, and its 30 s throttle then swallows the reload the #449 test waits for: that test fails under sh scripts/coverage.sh api every time and passes without it. Production builds are unaffected (both minified).
rays added the bug label 2026-11-14 16:11:50 -08:00
Author
Owner

Fixed in b22016c: buildStyle defaults to minifying only when the page does. The #449 test passes in coverage mode. Tooling only; nothing deployed.

Fixed in b22016c: buildStyle defaults to minifying only when the page does. The #449 test passes in coverage mode. Tooling only; nothing deployed.
rays closed this issue 2026-11-14 16:12:46 -08:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rays/ipx#464