Skip to content
PluginStats

svg-preview-plugin weekly downloads statistics

By lishaobos · npm · Webpack plugins

说明:解决项目中 svg 文件过多,不好同意查看管理的问题(支持 vite 和 webpack)

View on npm Stale · Oct 18, 2026

svg-preview-plugin has 10 recorded weekly downloads on npm, a decrease of 67.7% over the past 30 days, ranking #2096 of 2,391 tracked listings.

Weekly downloads
10
Official API · Oct 18, 2026
7-day growth
-58.3%
-14 weekly downloads
30-day growth
-67.7%
-21 weekly downloads
90-day growth
+400%
+8 weekly downloads
Rank
#2096
Among tracked npm listings

About svg-preview-plugin

svg-preview-plugin

说明:解决项目中 svg 文件过多,不好同意查看管理的问题(支持 vite 和 webpack)

<img src="https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/8c452533b0e847f48c10872a465d1e19~tplv-k3u1fbpfcp-watermark.image">

功能:

  • 实时预览 svg,动态更新预览内容
  • 复制文件名
  • 复制文件路径
  • 删除文件

use

npm i -D svg-preview-plugin@latest

options

  • dirPath

    • Type: string | array
    • Desc: 预览路径
  • open

    • Type: boolean
    • Default: true
    • Desc: 自动打开预览窗口
  • port

    • Type: number
    • Default: 3000
    • Desc: 预览端口
  • deep

    • Type: boolean
    • Default: false
    • Desc: 是否递归显示 dirPath 里的 svg
  • formatName

    • Type: function
    • Desc: 自定义复制内容

example

// webpack
const { WebpackPlugin } = require('svg-preview-plugin')

module.exports = {
  plugins: [
    new WebpackPlugin({
      dirPath: path.resolve('src/assets/icons/svg'),
      port: 3000,
      deep: true,
      formatName({name, filePath}) {
        return `<MyIcon name="${name}" />`
      }
    })
  ]
}
// vite | rollup
import { VitePlugin } from 'svg-preview-plugin'

module.exports = {
  plugins: [
    VitePlugin({
      dirPath: path.resolve('src/assets/icons/svg'),
      port: 3000,
      deep: true,
      formatName({name, filePath}) {
        return `<MyIcon name="${name}" />`
      }
    })
  ]
}

Description from the npm listing.

  • vite
  • vite-plugin-svg-icons
  • svg
  • svg-sprite-loader
  • webpack
  • webpack-plugin
  • preview
  • svg-preview

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

svg-preview-plugin weekly downloads on npm, last 90 days: 10 weekly downloads as of Oct 18, 2026, +400% over 90 days.svg-preview-pluginWeekly downloads on npm · Last 90 days10downloads / week+400% over 90 days0102030405060Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 23, 2026 – Oct 18, 2026 · 88 observations · Updated Oc…pluginstats.com
svg-preview-plugin weekly downloads on npm, last 90 days: 10 weekly downloads as of Oct 18, 2026, +400% over 90 days.

7/30/90-day growth

svg-preview-plugin weekly downloads growth on npm: -58.3% over 7 days, -67.7% over 30 days, +400% over 90 days.svg-preview-pluginWeekly downloads growth on npm10downloads / week now7-day growth-14 weekly downloads-58.3%30-day growth-21 weekly downloads-67.7%90-day growth+8 weekly downloads+400%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
svg-preview-plugin weekly downloads growth on npm: -58.3% over 7 days, -67.7% over 30 days, +400% over 90 days.

Ranking history

svg-preview-plugin npm ranking history: currently #2096 (by weekly downloads).svg-preview-pluginnpm ranking · by weekly downloads · Last 90 days#2096current rank#600#800#1000#1200#1400#1600#1800#2000#2200Jul 23Aug 7Aug 22Sep 6Sep 21Oct 6Oct 21rankOct 17, 2026 – Oct 21, 2026 · 5 observations · Updated Oct 18, 2026pluginstats.com
svg-preview-plugin npm ranking history: currently #2096 (by weekly downloads).

Listing placement

All npm2,389 listings · 120 pages · 1,195 shown · page 107, #11 (overall #2,131)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins257 listings · 13 pages · page 12, #3 (overall #223)
Webpack 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 (544)
Recent weekly downloads observations for svg-preview-plugin
Date (UTC)Weekly downloadsChange vs. previous
10+8
2-2
4+2
20
20
20
2-22
240
24+2
22-4
26-5
31-1
32-1
33—

Similar npm Webpack plugins plugins

All 20 svg-preview-plugin 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/svg-preview-plugin. First seen Oct 16, 2026; last successful collection Oct 21, 2026. See the methodology.