Documentation
¶
Overview ¶
Command bundle builds subflux's browser client: it bundles the SSE worker and the two page entrypoints (app.ts, login.ts) with esbuild, a Go library, so the builder needs no Node. It emits /app.js, /login.js and hashed shared chunks under /chunks/ (code both pages import, cached across the login-to-app transition), assembles the CSS bundles and copies @cplieger/ui-primitives' base stylesheet. esbuild does not typecheck: tsc --noEmit is the type gate. Usage: go run ./cmd/bundle from the repo root (the Dockerfile builder stage runs it too); outputs land in internal/server/static/, which go:embed ships.
Click to show internal directories.
Click to hide internal directories.