Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Apr 17, 2024
1 parent 4952673 commit 7fa0ef5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ import { formatToExtension, parseFont } from './css/render'
import type { FontFaceData, ModuleOptions, NormalizedFontFaceData } from './types'

// TODO: replace this with nuxt/assets when it is released
export function setupPublicAssetStrategy (options: ModuleOptions['assets'] = {}) {
export function setupPublicAssetStrategy(options: ModuleOptions['assets'] = {}) {
const assetsBaseURL = options.prefix || '/_fonts'
const nuxt = useNuxt()
const renderedFontURLs = new Map<string, string>()

function normalizeFontData (faces: FontFaceData | FontFaceData[]): NormalizedFontFaceData[] {
function normalizeFontData(faces: FontFaceData | FontFaceData[]): NormalizedFontFaceData[] {
const data: NormalizedFontFaceData[] = []
for (const face of Array.isArray(faces) ? faces : [faces]) {
data.push({
Expand Down

0 comments on commit 7fa0ef5

Please sign in to comment.