aboutsummaryrefslogtreecommitdiff
path: root/assets/dune
diff options
context:
space:
mode:
authorMarc Coquand <marcc@fastmail.fr>2023-12-04 08:06:31 -0600
committerMarc Coquand <marcc@fastmail.fr>2023-12-04 08:06:31 -0600
commiteacb0f2e62b3a713083be9cc15b8af41fac2d6af (patch)
tree2255733cf314bd0d61467fffde8cea96dfbe0c90 /assets/dune
parent47719821b568704739d42219076c2f7c02bf266b (diff)
downloadwormhole-eacb0f2e62b3a713083be9cc15b8af41fac2d6af.tar.gz
wormhole-eacb0f2e62b3a713083be9cc15b8af41fac2d6af.tar.bz2
wormhole-eacb0f2e62b3a713083be9cc15b8af41fac2d6af.zip
Add static assets in a single binary
Diffstat (limited to 'assets/dune')
-rw-r--r--assets/dune10
1 files changed, 10 insertions, 0 deletions
diff --git a/assets/dune b/assets/dune
new file mode 100644
index 0000000..0a984cb
--- /dev/null
+++ b/assets/dune
@@ -0,0 +1,10 @@
+(rule
+ (targets static.ml)
+ (deps (source_tree ./))
+ (action
+ (setenv OCAMLRUNPARAM "b"
+ (run %{bin:ocaml-crunch} --mode=plain -o static.ml -e css -e svg -e png -e jpg -e ttf ./))
+ ))
+
+(library (name assets)
+ (modules assets))