Build: stale webview bundle artifacts in App/Resources/webview/assets/ (~50MB dead weight) #46

Closed
opened 2026-05-12 19:08:38 +00:00 by KofTwentyTwo · 0 comments
KofTwentyTwo commented 2026-05-12 19:08:38 +00:00 (Migrated from github.com)

Summary

Stale build artifacts in App/Resources/webview/assets/. Audit-2026-05-03 noted 9 stale bundles totaling ~9.9 MB. Today: still 8 stale index-XXX.js files plus their .map files. Same pattern ~6 weeks later. No clean step has been added to whatever copies dist/ → App/Resources/webview/.

Evidence

  • Directory: App/Resources/webview/assets/ contains index-BKfT8cyH.js through index-PXUzusnJ.js plus .map files, with active index-fBrUXkPQ.js referenced by index.html
  • Each bundle ~1.1 MB; with .maps total is ~50+ MB of dead weight in .app bundle

Recommended fix

Add rm -rf App/Resources/webview/assets/* before the cp -R in whatever build script copies dist. Or have scripts/build-webview.sh own the cleanup.

Source

  • Audit: .planning/audit-2026-05-12/bus-hud-audit.md (2026-05-12) — finding S3 (Stale artifacts)
## Summary Stale build artifacts in `App/Resources/webview/assets/`. Audit-2026-05-03 noted 9 stale bundles totaling ~9.9 MB. Today: still 8 stale `index-XXX.js` files plus their `.map` files. Same pattern ~6 weeks later. No clean step has been added to whatever copies `dist/` → `App/Resources/webview/`. ## Evidence - Directory: `App/Resources/webview/assets/` contains `index-BKfT8cyH.js` through `index-PXUzusnJ.js` plus `.map` files, with active `index-fBrUXkPQ.js` referenced by `index.html` - Each bundle ~1.1 MB; with `.map`s total is ~50+ MB of dead weight in `.app` bundle ## Recommended fix Add `rm -rf App/Resources/webview/assets/*` before the `cp -R` in whatever build script copies dist. Or have `scripts/build-webview.sh` own the cleanup. ## Source - Audit: `.planning/audit-2026-05-12/bus-hud-audit.md` (2026-05-12) — finding S3 (Stale artifacts)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KofTwentyTwo/Jarvis#46