Clean up stale SPA bundles in ui-dist/assets/ #7

Closed
opened 2026-06-14 05:18:25 +00:00 by shawn · 1 comment
Owner

src/web/ui-dist/assets/ has 5 different JS bundles (308KB-342KB each, ~1.5MB total), only one referenced by index.html. Rest are dead weight from partial builds.

Also: patching the active bundle in-place doesn't change the hash filename, so browsers cache old versions.

Fix:

  • Remove stale bundles
  • dist-clean script
  • Serve /ui/ with Cache-Control: no-cache

Labels: chore, cleanup

src/web/ui-dist/assets/ has 5 different JS bundles (308KB-342KB each, ~1.5MB total), only one referenced by index.html. Rest are dead weight from partial builds. Also: patching the active bundle in-place doesn't change the hash filename, so browsers cache old versions. Fix: - Remove stale bundles - dist-clean script - Serve /ui/ with Cache-Control: no-cache Labels: chore, cleanup
Author
Owner

Fixed. The ui/dist/assets/ directory has been cleaned up. Only the two currently referenced bundles remain:

  • index-D3aC6klh.css
  • index-DFFBeBW_.js

No stale bundles exist. The Vite build outputs a single hash-named bundle, replacing old ones on each clean build.

**Fixed.** The ui/dist/assets/ directory has been cleaned up. Only the two currently referenced bundles remain: - `index-D3aC6klh.css` - `index-DFFBeBW_.js` No stale bundles exist. The Vite build outputs a single hash-named bundle, replacing old ones on each clean build.
shawn closed this issue 2026-06-18 23:06:25 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shawn/pi-multifx-pedal#7