Skip to content
PluginStats

vite-plugin-webfont-dl weekly downloads statistics

By feat-agency · npm · Vite plugins

Vite plugin for downloading and injecting webfonts

View on npm Fresh · Oct 17, 2026

vite-plugin-webfont-dl has 20,614 recorded weekly downloads on npm, a decrease of 53.4% over the past 30 days.

It ranks #745 of 2,251 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by -37.1%.

PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.

Weekly downloads
20,614
Official API · Oct 17, 2026
7-day growth
-55.5%
-25.7K weekly downloads
30-day growth
-53.4%
-23.6K weekly downloads
90-day growth
-37.1%
-12.2K weekly downloads
Rank
#745
Among tracked npm listings

About vite-plugin-webfont-dl

🔠 Webfont Download Vite Plugin ⚡

Automatically collects webfont links, imports, and definitions from your Vite project, downloads CSS and font files (privacy-first), adds the fonts to your bundle (or serves them through the dev server), and injects font definitions using a non-render-blocking method. External CSS and font files are stored in a persistent file cache, making them available for offline development.

📦 Install

📖 Table of Contents

1. 📦 Install 1. Usage: • 😎 [Zero config [method A]](#zero-config) • 🦄 [Simple config [method B]](#simple-config) 1. 🚀 That's all! • 🔌 Laravel • 📸 Screenshot 1. 🧩 Supported webfont providers 1. 🛠️ Options 1. ❓ Third-party webfonts 1. 🔮 How it works • 📉 Google Fonts • 📈 Webfont-DL Vite plugin 1. 📊 Benchmark 1. 📚 Resources 1. 📄 License

😎 Usage: Zero config [method A]

*Extracts, downloads, and injects fonts from the original Google Fonts code snippet.*

1. Select your font families from your webfont provider (e.g., Google Fonts) and copy the code from the "Use on the web" block into your : 2. Add webfontDownload to your Vite plugins without any configuration. The plugin will automatically handle everything: 3. The original webfont tags will be replaced in dist/index.html:

🦄 Usage: Simple config [method B]

*Extracts, downloads, and injects fonts from the configured webfont CSS URL(s).*

1. Select your font families from your webfont provider (e.g., Google Fonts) and copy the CSS URL(s) from the "Use on the web" code block: 2. Add webfontDownload to your Vite plugins with the selected webfont CSS URL(s):

🚀 That's all!

The webfonts are injected and ready to use. The plugin works seamlessly whether you are running a local development server or building for production.

💡 Import alias: The plugin can be imported using any of these names: webfontDownload, webfontDl, viteWebfontDl, ViteWebfontDownload, or viteWebfontDownload. Use whichever style you prefer!

🔌 Laravel

To use with the Laravel Vite Plugin, add this line to your Blade file:

📸 Screenshot

🧩 Supported webfont providers

• Google Fonts: works with Zero config or Simple config • Bunny Fonts: works with Zero config or Simple config • Fontshare: works with Zero config or Simple config • Fira Code, Hack fonts (cdn.jsdelivr.net): works with Zero config or Simple config • Inter font (rsms.me): works with Zero config or Simple config • *Any provider with CSS containing @font-face definitions works with Simple config*

🛠️ Options

Injection Options

• injectAsStyleTag (boolean, default: true) Inject webfonts as a tag (embedded CSS) or as an external .css file. • async (boolean, default: true) Controls CSS loading behavior (only applicable when injectAsStyleTag: false): • true: Async loading with media="print" trick (faster, but uses inline event handlers) • false: Standard blocking CSS loading (CSP-compliant, no inline scripts)

⚠️ For Chrome extensions or strict CSP environments, set async: false to avoid CSP violations.

Build Options

• minifyCss (boolean, default: *value of* build.minify) Minify CSS code during the build process. • embedFonts (boolean, default: false) Embed base64-encoded fonts directly into CSS. ⚠️ This can increase file size if CSS contains multiple references to the same font. Example • assetsSubfolder (string, default: '') Moves downloaded font files to a separate subfolder within the assets directory.

Performance Options

• cache (boolean, default: true) Persistently stores downloaded CSS and font files in a local file cache. Respects Vite's cacheDir configuration. Set to false to disable and delete the existing cache. • subsetsAllowed (string[], default: []) Restricts downloaded fonts to specified Unicode subsets (e.g., ['latin', 'cyrillic']). Leave empty to allow all subsets.

Network Options

• proxy (false | AxiosProxyConfig, default: false) Proxy configuration for network requests.

Error Handling

• throwError (boolean, default: false) If true, stops the build on font download/processing errors. If false, errors are logged as warnings and the build continues.

Example Configuration

With font URLs:

❓ Third-party webfonts

⚠️ Using the standard method to add third-party webfonts (Google Fonts, Bunny Fonts, or Fontshare) to a webpage can significantly slow down page load. Lighthouse and PageSpeed Insights call them *"render-blocking resources"*, which means the page can't fully render until the webfonts CSS has been fetched from the remote server.

📈 By avoiding render-blocking resources caused by third-party webfonts, you can boost page performance, leading to a better user experience and improved SEO results.

⚙️ The plugin downloads the specified fonts from the third-party webfont service (like Google Fonts) and dynamically injects them (as an internal or external stylesheet) into your Vite project, transforming third-party webfonts into self-hosted ones. 🤩

🔐 In addition to the significant performance increase, your visitors will also benefit from privacy protection, since there is no third-party server involved.

🔮 How it works

📉 Google Fonts

Google Fonts generates the following code, which you have to inject into your website's (*example*):…

Description from the npm listing.

  • vite
  • vite-plugin
  • web-font
  • webfont
  • webfont-dl
  • webfont-download
  • google-fonts
  • bunny-fonts
  • fontshare
  • vue
  • react

Where vite-plugin-webfont-dl sits in the listing

Each band is one page of 20. Weekly downloads on a log scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

All npm2,248 listings · 113 pages · page 38, #5 (overall #745)
All npm: every listing in weekly downloads order
PNG SVG
Vite plugins250 listings · 13 pages · page 7, #2 (overall #122)
Vite plugins: every listing in weekly downloads order
PNG SVG

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

vite-plugin-webfont-dl weekly downloads on npm, last 90 days: 20,614 weekly downloads as of Oct 17, 2026, -37.1% over 90 days.vite-plugin-webfont-dlWeekly downloads on npm · Last 90 days20,614downloads / week-37.1% over 90 days010K20K30K40K50K60K70KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
vite-plugin-webfont-dl weekly downloads on npm, last 90 days: 20,614 weekly downloads as of Oct 17, 2026, -37.1% over 90 days.
PNG SVG

7/30/90-day growth

vite-plugin-webfont-dl weekly downloads growth on npm: -55.5% over 7 days, -53.4% over 30 days, -37.1% over 90 days.vite-plugin-webfont-dlWeekly downloads growth on npm20,614downloads / week now7-day growth-25,732 weekly downloads-55.5%30-day growth-23,615 weekly downloads-53.4%90-day growth-12,175 weekly downloads-37.1%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
vite-plugin-webfont-dl weekly downloads growth on npm: -55.5% over 7 days, -53.4% over 30 days, -37.1% over 90 days.
PNG SVG

Ranking history

vite-plugin-webfont-dl npm ranking history: currently #745 (by weekly downloads).vite-plugin-webfont-dlnpm ranking · by weekly downloads · Last 90 days#745current rank#743#744#745#746#747Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 17, 2026pluginstats.com
vite-plugin-webfont-dl npm ranking history: currently #745 (by weekly downloads).
PNG SVG

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Recent observations

Full history (121)
Recent weekly downloads observations for vite-plugin-webfont-dl
Date (UTC)Weekly downloadsChange vs. previous
20,614-3.3K
23,934+972
22,962-9.5K
32,422-11.3K
43,6910
43,691-1.9K
45,586-760
46,346-510
46,856-5.9K
52,731-3.2K
55,897-1.4K
57,264-9.5K
66,720+3.3K
63,377—

Similar npm Vite plugins plugins

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/vite-plugin-webfont-dl. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.