Skip to content
PluginStats

vite-plugin-static-copy weekly downloads statistics

By sapphi-red · npm · Vite plugins

rollup-plugin-copy for vite with dev server support.

View on npm Fresh · Dec 6, 2026

vite-plugin-static-copy has 3,231,342 recorded weekly downloads on npm, an increase of 6.5% over the past 30 days, ranking #193 of 3,247 tracked listings.

Weekly downloads
3,231,342
Official API · Dec 5, 2026
7-day growth
+12.8%
+366K weekly downloads
30-day growth
+6.5%
+197.4K weekly downloads
90-day growth
+75.8%
+1.4M weekly downloads
Rank
#193
▲ 2 in 7 days

About vite-plugin-static-copy

vite-plugin-static-copy

npm version CI MIT License

rollup-plugin-copy for Vite with dev server support.

[!NOTE] Before you use this plugin, consider using public directory or import in JavaScript. In most cases, these will work.

Install

npm i -D vite-plugin-static-copy # yarn add -D vite-plugin-static-copy

Usage

Add viteStaticCopy plugin to vite.config.js / vite.config.ts.

// vite.config.js / vite.config.ts
import { viteStaticCopy } from 'vite-plugin-static-copy'

export default {
  plugins: [
    viteStaticCopy({
      targets: [
        {
          src: 'bin/example.wasm',
          dest: 'wasm-files',
          rename: { stripBase: 1 }, // strips `bin/`
        },
      ],
    }),
  ],
}

For example, if you use the config above, you will be able to fetch bin/example.wasm with fetch('/wasm-files/example.wasm'). So the file will be copied to dist/wasm-files/example.wasm.

[!WARNING]

If you are using Windows, make sure to use normalizePath after doing path.resolve or else. \ is a escape charactor in tinyglobby and you should use /.

import { normalizePath } from 'vite'
import path from 'node:path'

normalizePath(path.resolve(__dirname, './foo')) // C:/project/foo

// instead of
path.resolve(__dirname, './foo') // C:\project\foo
Options

See options.ts.

Debug

You can enable detailed logging by setting the DEBUG environment variable:

DEBUG=vite:plugin-static-copy npm run dev

When debug logging is enabled, the plugin will output which file is served from each URL.

Differences with rollup-plugin-copy

  • Faster dev server start-up than using rollup-plugin-copy on buildStart hook.
    • Files are not copied and served directly from the server during dev to reduce start-up time.
  • dest is relative to build.outDir.
    • If you are going to copy files outside build.outDir, you could use rollup-plugin-copy instead. Because that does not require dev server support.
  • tinyglobby is used instead of globby.
    • Because tinyglobby is used inside vite.
  • transform could return null as a way to tell the plugin not to copy the file, this is similar to the CopyWebpackPlugin#filter option, but it expects transform to return the original content in case you want it to be copied.
  • transform can optionally be an object, with a handler property (with the same signature of the rollup-plugin-copy transform option) and an encoding property (BufferEncoding | 'buffer') that will be used to read the file content so that the handler's content argument will reflect the correct encoding (could be Buffer);
  • Directory structure is always preserved in the output (similar to flatten: false in rollup-plugin-copy). Use rename: { stripBase: true } for flat copy.

Description from the npm listing.

  • vite
  • 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-static-copy weekly downloads on npm, last 90 days: 3,231,342 weekly downloads as of Dec 5, 2026, +75.8% over 90 days.vite-plugin-static-copyWeekly downloads on npm · Last 90 days3,231,342downloads / week+75.8% over 90 days0500K1M1.5M2M2.5M3M3.5MSep 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-static-copy weekly downloads on npm, last 90 days: 3,231,342 weekly downloads as of Dec 5, 2026, +75.8% over 90 days.

7/30/90-day growth

vite-plugin-static-copy weekly downloads growth on npm: +12.8% over 7 days, +6.5% over 30 days, +75.8% over 90 days.vite-plugin-static-copyWeekly downloads growth on npm3,231,342downloads / week now7-day growth+365,993 weekly downloads+12.8%30-day growth+197,370 weekly downloads+6.5%90-day growth+1,393,488 weekly downlo…+75.8%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
vite-plugin-static-copy weekly downloads growth on npm: +12.8% over 7 days, +6.5% over 30 days, +75.8% over 90 days.

Ranking history

vite-plugin-static-copy npm ranking history: currently #193 (by weekly downloads).vite-plugin-static-copynpm ranking · by weekly downloads · Last 90 days#193current rank#175#180#185#190#195#200Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
vite-plugin-static-copy npm ranking history: currently #193 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 10, #13 (overall #193)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins300 listings · 15 pages · page 1, #20 (overall #20)
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-static-copy
Date (UTC)Weekly downloadsChange vs. previous
3,231,342+40K
3,191,373+132.2K
3,059,127+146.7K
2,912,421+63.3K
2,849,139+12K
2,837,094-14.5K
2,851,571-13.8K
2,865,349-18.2K
2,883,573-111.4K
2,994,940-116.5K
3,111,410-57.4K
3,168,837-557
3,169,394-7.1K
3,176,473—

Similar npm Vite plugins plugins

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