vite-plugin-generate-file weekly downloads statistics
By sumy7 · npm · Vite plugins
Generate extra file to dist folder.
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.
About vite-plugin-generate-file
vite-plugin-generate-file
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:
| Name | Description | Options | Defaults |
|---|---|---|---|
type | Specifies the format type of the generated file. | json yaml template raw | json |
output | Defines the path to the output file that the plugin will generate. This path is relative to the dist folder. | - | ./output.txt |
template | Specifies the path to the template file. Supports ejs format template. This option is available when type is set to template. | - | - |
data | Specifies the data to be used in the generated file or to be passed into the template. | - | - |
contentType | Defines 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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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)Similar npm Vite plugins plugins
All 20 vite-plugin-generate-file alternativesData 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.