Skip to content

Commit

Permalink
Fix font loading
Browse files Browse the repository at this point in the history
  • Loading branch information
otaviocv committed Dec 7, 2024
1 parent 4bdc6fe commit f71bfd3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
font-weight: 400;
font-stretch: normal;
font-style: normal;
src: url('fonts/WOFF2/IosevkaTerm-Regular.woff2') format('woff2'), url('fonts/TTF/IosevkaTerm-Regular.ttf') format('truetype');
src: url('$fonts/WOFF2/IosevkaTerm-Regular.woff2') format('woff2'), url('$fonts/TTF/IosevkaTerm-Regular.ttf') format('truetype');
}
@font-face {
Expand All @@ -80,7 +80,7 @@
font-weight: 700;
font-stretch: normal;
font-style: normal;
src: url('fonts/WOFF2/IosevkaTerm-Bold.woff2') format('woff2'), url('fonts/TTF/IosevkaTerm-Bold.ttf') format('truetype');
src: url('$fonts/WOFF2/IosevkaTerm-Bold.woff2') format('woff2'), url('$fonts/TTF/IosevkaTerm-Bold.ttf') format('truetype');
}
a:link, a:visited, a:hover, a:active {
Expand Down
6 changes: 6 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import { resolve } from 'path';
import { defineConfig } from 'vitest/config';
import { sveltekit } from '@sveltejs/kit/vite';

export default defineConfig({
plugins: [sveltekit()],
resolve: {
alias: {
$fonts: resolve('./static/fonts')
}
},

test: {
include: ['src/**/*.{test,spec}.{js,ts}']
Expand Down

0 comments on commit f71bfd3

Please sign in to comment.