vite-plugin-webfont-dl

⚡ Webfont Download Vite Plugin - Make your Vite site load faster

MIT License

Downloads
49.4K
Stars
253
Committers
6

Bot releases are visible (Hide)

vite-plugin-webfont-dl - v3.5.0

Published by 0xb4lint over 1 year ago

Features

  • New capturing mechanism for @font-face definitions and @import rules (with webfont URLs) in the bundled CSS.
  • Added Fontshare and CDNFonts support.
vite-plugin-webfont-dl - v3.4.3

Published by 0xb4lint almost 2 years ago

Changed

Allow - and _ in google font files (#19 #20) - thanks @nstringham

vite-plugin-webfont-dl - v3.4.2

Published by 0xb4lint almost 2 years ago

Changed

Added support for Vite 4.

vite-plugin-webfont-dl - v3.4.1

Published by 0xb4lint almost 2 years ago

Changed

indexHtmlPath fix by changing replace regex to ^/ (fixes #18)

vite-plugin-webfont-dl - v3.4.0

Published by 0xb4lint almost 2 years ago

Features

Added Bunny Fonts support.

vite-plugin-webfont-dl - v3.3.0

Published by 0xb4lint about 2 years ago

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
vite-plugin-webfont-dl - v3.2.1

Published by 0xb4lint about 2 years ago

Changed

Moved clean-css from devDependencies to dependencies

vite-plugin-webfont-dl - v3.2.0

Published by 0xb4lint about 2 years ago

Features

Added minifyCss option, default: true.

vite-plugin-webfont-dl - v3.1.3

Published by 0xb4lint about 2 years ago

Changed

Package type fix (#16)

vite-plugin-webfont-dl - v3.1.2

Published by 0xb4lint about 2 years ago

Changed

Support for relative URLs (#17)

vite-plugin-webfont-dl - v3.1.1

Published by 0xb4lint about 2 years ago

Changed

Fix dev server font download issue (#12)

vite-plugin-webfont-dl - v3.1.0

Published by 0xb4lint about 2 years ago

Features

Added multiple aliases for much diverse usage:

  • viteWebfontDownload as default
  • viteWebfontDownload
  • webfontDl
  • webfontDownload
  • viteWebfontDl
  • ViteWebfontDownload
vite-plugin-webfont-dl - v3.0.1

Published by 0xb4lint about 2 years ago

Changed

  • Injection whitespace fixes
vite-plugin-webfont-dl - v3.0.0

Published by 0xb4lint about 2 years ago

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)

vite-plugin-webfont-dl - v2.2.1

Published by 0xb4lint about 2 years ago

Features

  • Vite 3 support (#8)
vite-plugin-webfont-dl - v2.2.0

Published by 0xb4lint over 2 years ago

Features

  • Handle Google Fonts text kit (#6)
vite-plugin-webfont-dl - v2.1.0

Published by 0xb4lint over 2 years ago

Features

  • Options: pass options object as parameter to plugin (#4)
    • async: prevent the usage of inline event handlers that can cause Content Security Policy issues (#3, #4)
vite-plugin-webfont-dl - v2.0.0

Published by 0xb4lint over 2 years ago

Feature

  • Zero config: use the plugin with default Google Fonts code and it just works

Changed

  • Code refactor
vite-plugin-webfont-dl - v1.0.9

Published by 0xb4lint over 2 years ago

Changed

  • Bump version for new dist files
vite-plugin-webfont-dl - v1.0.8

Published by 0xb4lint over 2 years ago

Changed

  • Added support for both string and string[] parameter for ViteWebfontDownload()
  • Stricter ESLint rules
  • Use tsup for build
Package Rankings
Top 6.72% on Proxy.golang.org
Top 2.81% on Npmjs.org
Badges
Extracted from project README
NPM NPM downloads