diff --git a/frontend/assets.go b/frontend/assets.go index ec55c996..3509eff6 100644 --- a/frontend/assets.go +++ b/frontend/assets.go @@ -1,3 +1,5 @@ +// +build !dev + package frontend import "embed" diff --git a/frontend/assets_dev.go b/frontend/assets_dev.go new file mode 100644 index 00000000..5c2ccf06 --- /dev/null +++ b/frontend/assets_dev.go @@ -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 +}