Skip to content
PluginStats

vite-plugin-html-env weekly downloads statistics

By lxs24sxl · npm · Vite plugins

A vite plugin for rewriting html

View on npm Fresh · Oct 17, 2026

vite-plugin-html-env has 4,100 recorded weekly downloads on npm, a decrease of 34.1% over the past 30 days.

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

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

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

Weekly downloads
4,100
Official API · Oct 17, 2026
7-day growth
-53.5%
-4.7K weekly downloads
30-day growth
-34.1%
-2.1K weekly downloads
90-day growth
-49.5%
-4K weekly downloads
Rank
#1138
Among tracked npm listings

About vite-plugin-html-env

vite-plugin-html-env

A Vite Plugin for rewriting html

English | 简体中文

Usage

It is recommended to use VITE_APP_ as the key prefix.

By default, the local environment reads the .env file.Read the corresponding .env.*** file, when you configure the --mode command.Vite configuration instructions for .env files Env Variables and Modes

Options

prefix

• Type: string • Default: ''

envPrefixes

Set the prefixes attribute of the loadEnv method in dev mode, vite uses VITE_ as the prefix of environment variables by default.

• Type: string | string[] • Default: VITE_

compiler

• Type: boolean • Default: true

The new version of the plugin is enabled by default, and the template compilation mode is added, which contains new directives vite-if and vite-else, new parsing rules import.meta.env.VITE_APP_***.

enforce

• Type: string • Default: null

The value of enforce can be either "pre" or "post". plugin-ordering

compress

• Type: boolean • Default: false

Simple compression: remove spaces and line breaks

Description from the npm listing.

  • vite
  • vite-plugin
  • html
  • compiler

Where vite-plugin-html-env 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 57, #18 (overall #1138)
All npm: every listing in weekly downloads order
PNG SVG
Vite plugins250 listings · 13 pages · page 11, #13 (overall #213)
Vite plugins: every listing in weekly downloads order
PNG SVG

Charts

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

Adoption over time

vite-plugin-html-env weekly downloads on npm, last 90 days: 4,100 weekly downloads as of Oct 17, 2026, -49.5% over 90 days.vite-plugin-html-envWeekly downloads on npm · Last 90 days4,100downloads / week-49.5% over 90 days02K4K6K8K10KJul 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-html-env weekly downloads on npm, last 90 days: 4,100 weekly downloads as of Oct 17, 2026, -49.5% over 90 days.
PNG SVG

7/30/90-day growth

vite-plugin-html-env weekly downloads growth on npm: -53.5% over 7 days, -34.1% over 30 days, -49.5% over 90 days.vite-plugin-html-envWeekly downloads growth on npm4,100downloads / week now7-day growth-4,720 weekly downloads-53.5%30-day growth-2,125 weekly downloads-34.1%90-day growth-4,011 weekly downloads-49.5%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
vite-plugin-html-env weekly downloads growth on npm: -53.5% over 7 days, -34.1% over 30 days, -49.5% over 90 days.
PNG SVG

Ranking history

vite-plugin-html-env npm ranking history: currently #1138 (by weekly downloads).vite-plugin-html-envnpm ranking · by weekly downloads · Last 90 days#1138current rank#1136#1137#1138#1139#1140Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 17, 2026pluginstats.com
vite-plugin-html-env npm ranking history: currently #1138 (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-html-env
Date (UTC)Weekly downloadsChange vs. previous
4,100-434
4,534-16
4,550-2K
6,564-2.8K
9,3830
9,383+281
9,102+282
8,820+170
8,650+509
8,141+559
7,582+1.6K
6,028-1.5K
7,561-376
7,937—

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-html-env. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.