Skip to content

Releases: cssninjaStudio/unplugin-fonts

v1.1.0

22 Nov 19:48
Compare
Choose a tag to compare

1.1.0 (2023-11-22)

Features

  • add support to fontsource variable v5 (a17831d), closes #60 #57
  • improve local file preload for vite and vitepress (10d7067)
  • vite 5 compatibility (15ea829)

Bug Fixes

  • bug in fontsource.ts when style is normal (#52) (1253f4d)
  • nuxt: fontsource loading and custom font preloading (5260277)

v1.0.0

20 Mar 12:12
Compare
Choose a tag to compare

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

v0.6.0

21 Jul 16:24
Compare
Choose a tag to compare

What's Changed

  • feat: add "injectTo" option to provider for transformIndexHtml in 43d960a close #19
  • feat: add support for vite 3 by @naokie in #25
  • docs: added nuxt@>3 instructions by @shorwood in #23

New Contributors

Full Changelog: v0.5.0...v0.6.0

v0.5.0

24 Jun 11:04
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.4.0...v0.5.0

v0.3.0

16 Mar 12:57
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.2.0...v0.3.0