aboutsummaryrefslogtreecommitdiff
path: root/generate/static.go
diff options
context:
space:
mode:
Diffstat (limited to 'generate/static.go')
-rw-r--r--generate/static.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/generate/static.go b/generate/static.go
new file mode 100644
index 0000000..4a02562
--- /dev/null
+++ b/generate/static.go
@@ -0,0 +1,17 @@
+package main
+
+import (
+ "context"
+ "log"
+ "os"
+
+ "github.com/gobuffalo/packr/builder"
+)
+
+func main() {
+ b := builder.New(context.Background(), os.Args[1])
+ b.Compress = true
+ if err := b.Run(); err != nil {
+ log.Fatal(err)
+ }
+}