initial commit
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
package ui
|
||||
|
||||
import "embed"
|
||||
|
||||
// Dist contains the built Svelte SPA assets (index.html + js/css/...).
|
||||
// Built by `make ui-build` (npm run build in ui/) and embedded at compile time.
|
||||
// Served by the Go binary for the admin UI on :81.
|
||||
//
|
||||
// Note: SvelteKit outputs assets under dist/_app/... (leading underscore).
|
||||
// Go's //go:embed skips dirs/files starting with _ by default in patterns,
|
||||
// so we explicitly list dist/_app to ensure the client JS/CSS are embedded.
|
||||
// See https://pkg.go.dev/embed and SvelteKit adapter-static output.
|
||||
//
|
||||
//go:embed dist dist/_app
|
||||
var Dist embed.FS
|
||||
Reference in New Issue
Block a user