v1.0.0
What's Changed
- Migrate to unplugin
- astro/nuxt/sveltekit/vitepress examples
- fontsource provider
- custom font transform
Migrating from vite-plugin-fonts
// vite.config.ts
-import { VitePluginFonts } from 'vite-plugin-fonts'
+import Unfonts from 'unplugin-fonts/vite'
export default defineConfig({
plugins: [
- VitePluginFonts({
+ Unfonts({
/* options */
}),
],
})
// main.ts
-import 'virtual:fonts.css'
+import 'unfonts.css'
Full Changelog: v0.7.0...v1.0.0