bundle

command
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL