git-bug/webui/debug_assets.go
Michael Muré 150b5d489c
invert the behavior of the build flag for the webui
Now produce by default a build with the packed webui, to make it go gettable properly.

fix #33
2018-09-02 00:06:50 +02:00

11 lines
302 B
Go

// +build debugwebui
package webui
import "net/http"
// WebUIAssets give access to the files of the Web UI for a http handler
// This access is only used in a debug build to be able to edit the WebUI
// files without having to package them.
var WebUIAssets http.FileSystem = http.Dir("webui/build")