evcc-io/server/liveAssets_dev.go
Andreas Linde edd833db82
Dev mode does not need make assets any more
- Only when using the buildflag `-tags dev` local file
- files are loaded directly from the file system instead of the compiled binary
- had to move `//go:generate esc …` from `server/http.go`to `main.go` as otherwise the stored local paths of the files wouldn’t be correct
- Moved the `liveAssets` constants definition into two separate files, where one is included when building for dev, and one when it isn’t
- move the tempate parsing into the handler in `http.go` as otherwise template changes would not be considered
2020-07-28 15:43:34 +02:00

7 lines
60 B
Go

// +build dev
package server
const (
liveAssets = true
)