chore: frontend DirFS for development
parent
4c1dd5c097
commit
bdd523190e
|
@ -1,3 +1,5 @@
|
|||
// +build !dev
|
||||
|
||||
package frontend
|
||||
|
||||
import "embed"
|
||||
|
|
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue