Skip to content

Commit 55d9b97

Browse files
committed
move fonts to reduce bundle size
- moved the font files to the public folder - changes the typography css rules to point to them so that they can be served as-is without being base64'd and added inline to style.css on build This might solve a large portion of #15 but we should leave the issue open to tackle this a little deeper even if it does
1 parent f4699bf commit 55d9b97

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/styles/base/typography.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
@font-face {
99
font-family: "Satoshi Variable";
10-
src: url("../fonts/Satoshi-Variable.woff2") format("woff2"),
11-
url("../fonts/Satoshi-Variable.woff") format("woff"),
12-
url("../fonts/Satoshi-Variable.ttf") format("truetype");
10+
src: url("/fonts/Satoshi-Variable.woff2") format("woff2"),
11+
url("/fonts/Satoshi-Variable.woff") format("woff"),
12+
url("/fonts/Satoshi-Variable.ttf") format("truetype");
1313
font-weight: 300 900;
1414
font-display: swap;
1515
font-style: normal;

0 commit comments

Comments
 (0)