use swc to minify html and js #23

Closed
opened 2026-09-16 07:56:14 -07:00 by rays · 1 comment
Owner

use swc to minify html and js files for deployment

https://swc.rs

use swc to minify html and js files for deployment https://swc.rs
rays added the enhancement label 2026-09-17 13:25:20 -07:00
rays added a new dependency 2026-09-17 13:26:25 -07:00
Author
Owner

Done in 26802d2, deployed. build.rs runs web/build.mjs, which strips the TypeScript and minifies the script with @swc/core, then minifies the whole page (HTML and CSS) with @swc/html. index.html goes from 137 KB to 106 KB; most of what is left is the inline SVG icons. The Docker build now installs node and runs npm ci --omit=dev.

Done in 26802d2, deployed. build.rs runs web/build.mjs, which strips the TypeScript and minifies the script with @swc/core, then minifies the whole page (HTML and CSS) with @swc/html. index.html goes from 137 KB to 106 KB; most of what is left is the inline SVG icons. The Docker build now installs node and runs npm ci --omit=dev.
rays closed this issue 2026-09-18 05:42:39 -07:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Depends on
Reference: rays/ipodderx-rs#23