about summary refs log tree commit diff stats
path: root/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'frontend')
-rw-r--r--frontend/dev.go9
-rw-r--r--frontend/embedded.go8
2 files changed, 17 insertions, 0 deletions
diff --git a/frontend/dev.go b/frontend/dev.go
new file mode 100644
index 0000000..6cde8a5
--- /dev/null
+++ b/frontend/dev.go
@@ -0,0 +1,9 @@
+//go:build !embed
+
+package frontend
+
+import (
+	"os"
+)
+
+var Files = os.DirFS("frontend/")
diff --git a/frontend/embedded.go b/frontend/embedded.go
new file mode 100644
index 0000000..5310d65
--- /dev/null
+++ b/frontend/embedded.go
@@ -0,0 +1,8 @@
+//go:build embed
+
+package frontend
+
+import "embed"
+
+//go:embed *
+var Files embed.FS