Commit Graph
6 Commits
Author SHA1 Message Date
Pranav 9d32e27c98 Add a check with http 2026-01-11 11:31:32 -08:00
Pranav 3527c07e94 Cleanup the code to make more readable 2026-01-11 11:18:17 -08:00
PranavandClaude Opus 4.5 59427c4de3 fix: Include assets (fonts, images) from manifest
Add entry.assets array to precache list for fonts and images.
Increases precached assets from 69 to 86.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 20:54:05 -08:00
PranavandClaude Opus 4.5 7787ec1265 fix: Include CSS files from manifest css arrays
The Vite manifest has CSS files in two places:
- entry.file (main CSS files)
- entry.css (CSS imported by JS modules)

The previous code only read entry.file, missing CSS from entry.css.
This increases precached assets from 57 to 69.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 20:51:27 -08:00
PranavandClaude Opus 4.5 8daac4cdd1 fix: Construct CDN asset URLs correctly with protocol and path
- Add https:// protocol to ASSET_CDN_HOST if missing
- Include asset path (/vite/) when constructing CDN URLs
- Fix URL: https://cdn.example.com/vite/assets/file.css

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 20:13:39 -08:00
PranavandClaude Opus 4.5 adbee23e12 refactor: Colocate service worker build script with source files
Move build script from scripts/build-service-worker.js to
app/javascript/service-worker/build.js to keep all service worker
related code in one place.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 19:30:15 -08:00