Skip to content
PluginStats

vite-plugin-generate-file weekly downloads statistics

By sumy7 · npm · Vite plugins

Generate extra file to dist folder.

View on npm Fresh · Dec 6, 2026

vite-plugin-generate-file has 70,076 recorded weekly downloads on npm, an increase of 9.1% over the past 30 days, ranking #704 of 3,247 tracked listings.

Weekly downloads
70,076
Official API · Dec 5, 2026
7-day growth
+9.5%
+6.1K weekly downloads
30-day growth
+9.1%
+5.8K weekly downloads
90-day growth
+138%
+40.6K weekly downloads
Rank
#704
▲ 8 in 7 days

About vite-plugin-generate-file

vite-plugin-generate-file

npm npm npm

vite-plugin-generate-file is a vite plugin which generate static file and write them to dist folder after packaging.

Usage

Install dev dependency :

yarn add vite-plugin-generate-file -D
npm install vite-plugin-generate-file -D

Since vite-plugin-generate-file@v0.1.0, Vite v3.1 or above is required.

Add plugin to your vite.config.ts :

// vite.config.ts
import generateFile from 'vite-plugin-generate-file'

export default {
  plugins: [
    generateFile([{
      type: 'json',
      output: './output.txt',
      data: {
        foo: 'bar'
      }
    }])
  ]
}

Here are the available options for configuration:

NameDescriptionOptionsDefaults
typeSpecifies the format type of the generated file.json yaml template rawjson
outputDefines the path to the output file that the plugin will generate. This path is relative to the dist folder.-./output.txt
templateSpecifies the path to the template file. Supports ejs format template. This option is available when type is set to template.--
dataSpecifies the data to be used in the generated file or to be passed into the template.--
contentTypeDefines the Content-Type response returned from the dev server. If left empty, it will be inferred from the output path extension.--

In dev mode, plugin will mock file by dev server. See localhost:5173/__generate_file_list/ for more detail.

Credits

This plugin was inspired by Alicevia/vite-plugin-generate-config-into-dist and antfu/vite-plugin-inspect

License

MIT

Description from the npm listing.

  • vite
  • vue
  • plugin
  • generate
  • 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-generate-file weekly downloads on npm, last 90 days: 70,076 weekly downloads as of Dec 5, 2026, +138% over 90 days.vite-plugin-generate-fileWeekly downloads on npm · Last 90 days70,076downloads / week+138% over 90 days010K20K30K40K50K60K70K80KSep 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-generate-file weekly downloads on npm, last 90 days: 70,076 weekly downloads as of Dec 5, 2026, +138% over 90 days.

7/30/90-day growth

vite-plugin-generate-file weekly downloads growth on npm: +9.5% over 7 days, +9.1% over 30 days, +138% over 90 days.vite-plugin-generate-fileWeekly downloads growth on npm70,076downloads / week now7-day growth+6,053 weekly downloads+9.5%30-day growth+5,846 weekly downloads+9.1%90-day growth+40,614 weekly downloads+138%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
vite-plugin-generate-file weekly downloads growth on npm: +9.5% over 7 days, +9.1% over 30 days, +138% over 90 days.

Ranking history

vite-plugin-generate-file npm ranking history: currently #704 (by weekly downloads).vite-plugin-generate-filenpm ranking · by weekly downloads · Last 90 days#704current rank#200#300#400#500#600#700#800Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
vite-plugin-generate-file npm ranking history: currently #704 (by weekly downloads).

Listing placement

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

Listing placement

Vite plugins300 listings · 15 pages · page 7, #1 (overall #121)
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 (592)
Recent weekly downloads observations for vite-plugin-generate-file
Date (UTC)Weekly downloadsChange vs. previous
70,076-1.1K
71,174+453
70,721+62
70,659+2.5K
68,151+2.6K
65,584+1.3K
64,323+300
64,023+590
63,433+1K
62,385+4.5K
57,917+2.7K
55,256+2.9K
52,315-246
52,561—

Similar npm Vite plugins plugins

All 20 vite-plugin-generate-file 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-generate-file. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.