Skip to content

[Bug]: Not working after switch from vite-plugin-fonts #44

@ffind

Description

@ffind

Demo URL

No response

What happened?

Switched to unplugin-fonts by this guide https://github.com/cssninjaStudio/unplugin-fonts/releases/tag/v1.0.0
No warnings or errors and no links with fonts injected

"vite": "^3.0.5",
-"vite-plugin-fonts": "^0.7.0"
+"unplugin-fonts": "^1.0.0
-import { VitePluginFonts } from 'vite-plugin-fonts'
+import  Unfonts from 'unplugin-fonts/vite';

-VitePluginFonts({
+Unfonts({
    custom: {
        display: 'swap',
        families: {
            Basketcase: {
                src: resolveApp('public/fonts/BasketcaseRomanNumbers*')
            }
        }
    }
}),

Reproduction steps

1. Used guide to switch from `vite-plugin-fonts` to `unplugin-fonts/vite`

Relevant log output

No response

What browsers are you seeing the problem on?

Chrome

What is your operating system?

MacOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingvite-3.x

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions