From 1d9cdf4d46f69b39e9b4d89ee65c1c7e71938183 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Sun, 26 Jan 2020 02:46:56 -0800 Subject: [PATCH] Use local fonts (#573) This updates the way fonts are handled to not have to download the font from the internet. If you do `./public/font.ttf` in the .scss file, unfortunately the bundle packages them somewhere that's different from the public folder that is used by the index.html to preload them. The fix I used is to use absolute path `/font.ttf` so that both work. Unfortunately, this means that the website will only work if at the root of the domain. That's the case so far so it's okay but still annoying if we want to embed it somewhere. --- public/index.html | 4 ++-- src/index-node.ts | 1 + src/styles.scss | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/public/index.html b/public/index.html index 6bd173378a..a748f696b7 100644 --- a/public/index.html +++ b/public/index.html @@ -50,14 +50,14 @@