File tree 3 files changed +4
-5
lines changed
3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export default {
7
7
// Do some stuff
8
8
resolvableFonts . add ( 'SomeFontFromCustomProvider' )
9
9
} ,
10
- async resolveFontFaces ( fontFamily , _defaults ) {
10
+ async resolveFontFaces ( fontFamily ) {
11
11
if ( ! resolvableFonts . has ( fontFamily ) ) { return }
12
12
return {
13
13
fonts : {
Original file line number Diff line number Diff line change 1
1
import fsp from 'node:fs/promises'
2
- import { addDevServerHandler , useNitro , useNuxt } from '@nuxt/kit'
2
+ import { addDevServerHandler , useNuxt } from '@nuxt/kit'
3
3
import { eventHandler , createError , lazyEventHandler } from 'h3'
4
4
import { fetch } from 'ofetch'
5
5
import chalk from 'chalk'
@@ -50,7 +50,6 @@ export function setupPublicAssetStrategy (options: ModuleOptions['assets'] = {})
50
50
addDevServerHandler ( {
51
51
route : assetsBaseURL ,
52
52
handler : lazyEventHandler ( async ( ) => {
53
- const nitro = useNitro ( )
54
53
return eventHandler ( async event => {
55
54
const filename = event . path . slice ( 1 )
56
55
const url = renderedFontURLs . get ( event . path . slice ( 1 ) )
Original file line number Diff line number Diff line change 1
1
import { hasProtocol } from 'ufo'
2
- import type { FontSource , NormalizedFontFaceData , RemoteFontSource } from '../types'
2
+ import type { FontSource , NormalizedFontFaceData } from '../types'
3
3
import { extname } from 'pathe'
4
- import { getMetricsForFamily , readMetrics , generateFontFace as generateFallbackFontFace } from 'fontaine'
4
+ import { getMetricsForFamily , generateFontFace as generateFallbackFontFace } from 'fontaine'
5
5
6
6
export function generateFontFace ( family : string , font : NormalizedFontFaceData ) {
7
7
return [
You can’t perform that action at this time.
0 commit comments