feat: embed the built web app in sondad behind the webui build tag
internal/webui carries web/'s build (written to internal/webui/dist by Vite, git-ignored) when sondad is built with -tags webui. Without the tag the app is absent and a plain go build and go test still work with no Node. main wires it into the router.
This commit is contained in:
parent
7acac73dd0
commit
249b2cb7bc
1 changed files with 56 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,4 +1,6 @@
|
|||
/bin/
|
||||
# The built web app, embedded in the binary by a build with -tags webui: an artifact, never committed.
|
||||
/internal/webui/dist/
|
||||
*.test
|
||||
*.out
|
||||
sonda.toml
|
||||
|
|
|
|||
Loading…
Reference in a new issue