Use Vite build tool

This commit is contained in:
Anders Roos 2022-11-15 00:06:15 +01:00
parent 57b4862a5b
commit 5645cd23fe
40 changed files with 3513 additions and 2715 deletions

View file

@ -20,9 +20,9 @@ type Dashboard struct {
// New is a factory function creating a new Dashboard instance
func New() *Dashboard {
const webRootDir = "./web/static" // Todo: needs to work in containerized environment
const webPort = "8001" // Todo: make configurable?
const apiPort = "8080" // Todo: make configurable?
const webRootDir = "./web/dist" // Todo: needs to work in containerized environment
const webPort = "8001" // Todo: make configurable?
const apiPort = "8080" // Todo: make configurable?
return &Dashboard{
apiPort: apiPort,