Files
paseo/.github/workflows
Daniel JB ClarkandClaude Sonnet 5.5 e31f379d54 perf(desktop): ship precompressed web assets in app-dist (#10635)
The desktop app's Resources/app-dist was copied raw from packages/app/dist,
so the daemon-served web UI first load transferred about 25 MB. The server
already prefers `<asset>.br` / `<asset>.gz` beside an asset (web-ui.ts), but
only the standalone `build:daemon-web-ui` ever created them.

build:desktop now precompresses packages/app/dist after `expo export` and
before electron-builder copies it to app-dist via extraResources (no files
glob excludes .br/.gz). The compression code moves to
scripts/precompress-assets.mjs, shared with build-daemon-web-ui.mjs, with the
same extension list and brotli max quality (about 38 s for the 25 MB bundle;
first load drops to about 4 MB with br, 5.6 MB with gzip).

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-30 14:51:00 +07:00
..