summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client-web/.gitignore1
-rw-r--r--client-web/makefile5
-rw-r--r--client-web/public/assets/style/master.css2
3 files changed, 6 insertions, 2 deletions
diff --git a/client-web/.gitignore b/client-web/.gitignore
index 55fe618..99be205 100644
--- a/client-web/.gitignore
+++ b/client-web/.gitignore
@@ -1,2 +1,3 @@
/public/assets/bundle.js
/public/assets/sw.js
+/public/assets/font
diff --git a/client-web/makefile b/client-web/makefile
index e81a09d..2623c6e 100644
--- a/client-web/makefile
+++ b/client-web/makefile
@@ -1,5 +1,5 @@
.PHONY: all watch
-all: public/assets/bundle.js public/assets/sw.js
+all: public/assets/bundle.js public/assets/sw.js public/assets/font/include.css
watch:
deno bundle --no-check --watch source/index.ts public/assets/bundle.js &
deno bundle --no-check --watch source/sw/worker.ts public/assets/sw.js
@@ -7,3 +7,6 @@ public/assets/bundle.js: $(shell find source -type f -name '*.ts')
deno bundle --no-check --unstable source/index.ts > $@
public/assets/sw.js: $(shell find source/sw -type f -name '*.ts')
deno bundle --no-check --unstable source/sw/worker.ts > $@
+public/assets/font/include.css:
+ mkdir -p public/assets/font
+ curl 'https://s.metamuffin.org/static/font-ubuntu.tar' | tar -xC public/assets/font
diff --git a/client-web/public/assets/style/master.css b/client-web/public/assets/style/master.css
index c6527b8..13f8f2f 100644
--- a/client-web/public/assets/style/master.css
+++ b/client-web/public/assets/style/master.css
@@ -3,7 +3,7 @@
which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
Copyright (C) 2022 metamuffin <metamuffin@disroot.org>
*/
-@import url("https://s.metamuffin.org/static/font-ubuntu/include.css");
+@import url("../font/include.css");
@import url("./logger.css");
@import url("./chat.css");
@import url("./room.css");