Skip to content

Releases: feat-agency/vite-plugin-webfont-dl

v3.4.0

20 Oct 15:01
Compare
Choose a tag to compare

Features

Added Bunny Fonts support.

v3.3.0

20 Oct 07:20
Compare
Choose a tag to compare

Features

  • Support projects without index.html (like Laravel: @vite('webfonts.css')) (#15)
  • Log download events (useful to know what takes so long with the build)
  • Added unit tests

Changes

  • Moved business logic from transformIndexHtml to generateBundle (#15)
  • Forced inject as external stylesheet (like injectAsStyleTag: false), if transformIndexHtml hook is not fired
  • Use value of build.minify for minifyCss option
  • Use /@webfonts/ as assets directory with dev server

v3.2.1

15 Oct 13:53
Compare
Choose a tag to compare

Changed

Moved clean-css from devDependencies to dependencies

v3.2.0

15 Oct 13:02
Compare
Choose a tag to compare

Features

Added minifyCss option, default: true.

v3.1.3

15 Oct 09:30
Compare
Choose a tag to compare

Changed

Package type fix (#16)

v3.1.2

15 Oct 08:46
Compare
Choose a tag to compare

Changed

Support for relative URLs (#17)

v3.1.1

17 Aug 11:46
ad71d50
Compare
Choose a tag to compare

Changed

Fix dev server font download issue (#12)

v3.1.0

17 Aug 07:20
Compare
Choose a tag to compare

Features

Added multiple aliases for much diverse usage:

  • viteWebfontDownload as default
  • viteWebfontDownload
  • webfontDl
  • webfontDownload
  • viteWebfontDl
  • ViteWebfontDownload

v3.0.1

16 Aug 14:16
Compare
Choose a tag to compare

Changed

  • Injection whitespace fixes

v3.0.0

16 Aug 11:39
1243dc9
Compare
Choose a tag to compare

Features

Added injectAsStyleTag option (default: true).
With this option the webfont CSS will be injected as an embedded CSS (<style> tag), saving one HTTP request (also fixes #9).

(By using vite as dev server the plugin will use external CSS, downloading fonts JIT, as before)