use swc to minify html and js #23
Notifications
Due Date
No due date set.
Depends on
#24 Move inline js to typescript
rays/ipodderx-rs
Reference: rays/ipodderx-rs#23
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?
use swc to minify html and js files for deployment
https://swc.rs
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.