Skip to content

font-display in nuxt.config.ts not respected #634

@jmh-zero

Description

@jmh-zero

Hello - I have the following in nuxt.config.ts

fonts: {
    families: [
      {
        name: 'My Font',
        provider: 'local',
        weights: ['200', '300', '400', '500', '600', '700', '800', '900'],
        display: 'optional',
      },
    ],
  }

When I inspect the @font-face created in the style section of my document, I can see font-display: swap. I'm on version 0.11.3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions