chore: frontend DirFS for development

pull/1331/head
Ramires Viana 2021-03-15 14:06:21 +00:00
parent 4c1dd5c097
commit bdd523190e
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,5 @@
// +build !dev
package frontend
import "embed"

14
frontend/assets_dev.go Normal file
View File

@ -0,0 +1,14 @@
// +build dev
package frontend
import (
"io/fs"
"os"
)
var assets fs.FS = os.DirFS("frontend")
func Assets() fs.FS {
return assets
}