mirror of
https://github.com/getpaseo/paseo.git
synced 2026-12-01 04:36:26 +00:00
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>