Skip to content

Commit

Permalink
test: add test for relative font url
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Oct 16, 2022
1 parent 6f908a2 commit e34fa4d
Show file tree
Hide file tree
Showing 5 changed files with 221 additions and 156 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
},
"dependencies": {
"@nuxt/kit": "3.0.0-rc.11",
"fontaine": "^0.1.1",
"fontaine": "^0.1.2",
"magic-string": "^0.26.7",
"pathe": "^0.3.9",
"ufo": "^0.8.6"
Expand Down
5 changes: 5 additions & 0 deletions playground/assets/css/fonts/font.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@font-face {
font-family: 'Poppins From CSS';
font-display: swap;
src: url('../../poppins.ttf');
}
Binary file added playground/assets/poppins.ttf
Binary file not shown.
3 changes: 1 addition & 2 deletions playground/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { defineNuxtConfig } from 'nuxt'

export default defineNuxtConfig({
modules: ['nuxt-font-metrics'],
css: ['~/assets/css/fonts/font.css'],
fontMetrics: {
fonts: [
{
Expand Down

0 comments on commit e34fa4d

Please sign in to comment.