Skip to content
PluginStats

vite-plugin-replace-files weekly downloads statistics

By elwin013 · npm · Vite plugins

Replace files during Vite build - handy when replacing strings is not enough

View on npm Outdated · Oct 26, 2026

vite-plugin-replace-files has 5,192 recorded weekly downloads on npm, a decrease of 4.1% over the past 30 days, ranking #1514 of 3,247 tracked listings.

Weekly downloads
5,192
Official API · Dec 5, 2026
7-day growth
+12.4%
+573 weekly downloads
30-day growth
-4.1%
-224 weekly downloads
90-day growth
+193%
+3.4K weekly downloads
Rank
#1514
▲ 3 in 7 days

About vite-plugin-replace-files

vite-plugin-replace-files

Replace files during Vite build - handy when replacing strings is not enough.

Install

Install with your favorite package manager (e.g. npm):

npm install -D vite-plugin-replace-files

Usage

This plugin should go before any other stuff in plugins array, so all other plugins that runs later could e.g. apply optimisations.

Add to vite.config.ts - example below will replace file src/env.ts with file conf/env.ts:

import { defineConfig } from 'vite';
import path from 'path';
import replaceFiles from 'vite-plugin-replace-files';

export default defineConfig({
  plugins: [
    replaceFiles([
      {
        file: path.join('src', 'env.ts'),
        replacement: path.join('conf', 'env.ts'),
      },
    ])
  ],
});

License

MIT

Description from the npm listing.

  • vite-plugin

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

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

Adoption over time

vite-plugin-replace-files weekly downloads on npm, last 90 days: 5,192 weekly downloads as of Dec 5, 2026, +193% over 90 days.vite-plugin-replace-filesWeekly downloads on npm · Last 90 days5,192downloads / week+193% over 90 days05K10K15K20KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
vite-plugin-replace-files weekly downloads on npm, last 90 days: 5,192 weekly downloads as of Dec 5, 2026, +193% over 90 days.

7/30/90-day growth

vite-plugin-replace-files weekly downloads growth on npm: +12.4% over 7 days, -4.1% over 30 days, +193% over 90 days.vite-plugin-replace-filesWeekly downloads growth on npm5,192downloads / week now7-day growth+573 weekly downloads+12.4%30-day growth-224 weekly downloads-4.1%90-day growth+3,420 weekly downloads+193%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
vite-plugin-replace-files weekly downloads growth on npm: +12.4% over 7 days, -4.1% over 30 days, +193% over 90 days.

Ranking history

vite-plugin-replace-files npm ranking history: currently #1514 (by weekly downloads).vite-plugin-replace-filesnpm ranking · by weekly downloads · Last 90 days#1514current rank#1300#1350#1400#1450#1500#1550Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 20 observations · Updated Dec 5, 2026pluginstats.com
vite-plugin-replace-files npm ranking history: currently #1514 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 76, #14 (overall #1,514)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins300 listings · 15 pages · page 14, #7 (overall #267)
Vite plugins: every listing in weekly downloads order

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.

Each band is one page of 20. Weekly downloads on a linear 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.

Recent observations

Full history (170)
Recent weekly downloads observations for vite-plugin-replace-files
Date (UTC)Weekly downloadsChange vs. previous
5,192-321
5,513+433
5,080+565
4,515-62
4,577-5
4,582-526
5,108+489
4,619-150
4,769-622
5,391-459
5,850-248
6,098-178
6,276+346
5,930—

Similar npm Vite plugins plugins

All 20 vite-plugin-replace-files alternatives

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-replace-files. First seen Oct 16, 2026; last successful collection Oct 26, 2026. See the methodology.