Clean up stale SPA bundles in ui-dist/assets/ #7
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
Labels: chore, cleanup
Fixed. The ui/dist/assets/ directory has been cleaned up. Only the two currently referenced bundles remain:
index-D3aC6klh.cssindex-DFFBeBW_.jsNo stale bundles exist. The Vite build outputs a single hash-named bundle, replacing old ones on each clean build.