summaryrefslogtreecommitdiff
path: root/js/embed.go
diff options
context:
space:
mode:
authorPhilipp Tanlak <philipp.tanlak@gmail.com>2023-08-11 18:31:20 +0200
committerPhilipp Tanlak <philipp.tanlak@gmail.com>2023-08-11 18:31:20 +0200
commit062b36fe5725d1267c66db2e506b4131d78ce772 (patch)
tree998e5260feb1babac8dae512b56d67d8f20f7266 /js/embed.go
parent7e4cf39a0ba6ccbd5cc036700a8b1ff9358ecc3d (diff)
simplify project structure
Diffstat (limited to 'js/embed.go')
-rw-r--r--js/embed.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/embed.go b/js/embed.go
new file mode 100644
index 0000000..5413e77
--- /dev/null
+++ b/js/embed.go
@@ -0,0 +1,8 @@
+package js
+
+import _ "embed"
+
+//go:generate esbuild --bundle --platform=node --format=iife --outfile=flyscrape_bundle.js flyscrape.js
+
+//go:embed flyscrape_bundle.js
+var Flyscrape string