//go:build webui // Package webui carries the built web app inside the binary. package webui import ( "embed" "io/fs" ) // dist is what `npm run build` writes in web/: build the app first, then build with -tags webui. // //go:embed all:dist var dist embed.FS // FS is the built web app, with index.html at its root. func FS() fs.FS { sub, err := fs.Sub(dist, "dist") if err != nil { return nil } return sub }