Skip to content
PluginStats

vite-plugin-vue-template-inspector weekly downloads statistics

By Leadgq (2 listings) · npm · Webpack plugins

Vite/Webpack plugin: Alt+click Vue template elements to copy the source path or open it in your editor.

View on npm Fresh · Oct 18, 2026

vite-plugin-vue-template-inspector has 4 recorded weekly downloads on npm, a decrease of 98.4% over the past 30 days, ranking #2229 of 2,322 tracked listings.

Weekly downloads
4
Official API · Oct 18, 2026
7-day growth
-20.0%
-1 weekly downloads
30-day growth
-98.4%
-245 weekly downloads
90-day growth
—
Insufficient history
Rank
#2229
Among tracked npm listings

About vite-plugin-vue-template-inspector

vite-plugin-vue-template-inspector

GitHub

开发插件:在页面上 Alt + 左键 点击 Vue 模板节点,弹出源码路径,可复制或在本地编辑器中打开。

支持 Vite 与 Webpack 5(Vue 2 / Vue 3)。仅开发态生效,不会进入生产构建。

乾坤子应用里会用 __INJECTED_PUBLIC_PATH_BY_QIANKUN__ 把「打开编辑器」请求打到子应用的 dev server,而不是主应用域名。

安装

pnpm add -D vite-plugin-vue-template-inspector
# 或
npm i -D vite-plugin-vue-template-inspector

本地未发布时:

pnpm add -D ../vite-plugin-vue-template-inspector
# 或 npm i -D --legacy-peer-deps file:../vite-plugin-vue-template-inspector

Vite

插件需要放在 @vitejs/plugin-vue 之前,才能在编译前给模板打上定位属性。

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { vueTemplateInspector } from 'vite-plugin-vue-template-inspector'

export default defineConfig({
  plugins: [
    vueTemplateInspector({
      enable: true,
      start: 'code',
    }),
    vue(),
  ],
})

Webpack 5

需要 vue-loader(15 或 17)、html-webpack-plugin、webpack-dev-server。不必手写 loader rule,插件会在 vue-loader 前插入 pre-loader。只加在开发配置里即可。

const { VueLoaderPlugin } = require('vue-loader')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const { VueTemplateInspectorWebpackPlugin } =
  require('vite-plugin-vue-template-inspector/webpack')

module.exports = {
  plugins: [
    new VueLoaderPlugin(),
    new HtmlWebpackPlugin(),
    new VueTemplateInspectorWebpackPlugin({
      enable: true,
      start: 'trae',
    }),
  ],
}

没有 html-webpack-plugin 时面板脚本插不进页面。乾坤通过 import-html-entry 拉子应用 HTML 时,仍会执行这段脚本。

选项

选项默认说明
enabletrue为 false 时完全关闭插件
start自动检测传给 launch-editor 的编辑器。可用 code、trae、webstorm 等命令名;Windows 上若命令找不到,可改成 exe 绝对路径

本地调试

pnpm install
pnpm dev          # Vite playground,http://localhost:5175
pnpm dev:webpack  # Webpack playground,http://localhost:5176

打开 playground 后,按住 Alt 点击页面上的元素即可验证注入、复制路径和打开编辑器。

Description from the npm listing.

  • vite
  • vite-plugin
  • webpack
  • webpack-plugin
  • vue
  • inspector
  • devtools

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-vue-template-inspector weekly downloads on npm, last 90 days: 4 weekly downloads as of Oct 18, 2026.vite-plugin-vue-template-inspectorWeekly downloads on npm · Last 90 days4downloads / week0100200300400500Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
vite-plugin-vue-template-inspector weekly downloads on npm, last 90 days: 4 weekly downloads as of Oct 18, 2026.

7/30/90-day growth

vite-plugin-vue-template-inspector weekly downloads growth on npm: -20.0% over 7 days, -98.4% over 30 days, 90-day growth unavailable.vite-plugin-vue-template-inspectorWeekly downloads growth on npm4downloads / week now7-day growth-1 weekly downloads-20.0%30-day growth-245 weekly downloads-98.4%90-day growth+4 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
vite-plugin-vue-template-inspector weekly downloads growth on npm: -20.0% over 7 days, -98.4% over 30 days, 90-day growth unavailable.

Ranking history

vite-plugin-vue-template-inspector npm ranking history: currently #2229 (by weekly downloads).vite-plugin-vue-template-inspectornpm ranking · by weekly downloads · Last 90 days#2229current rank#2216#2218#2220#2222#2224#2226#2228#2230#2232Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
vite-plugin-vue-template-inspector npm ranking history: currently #2229 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,161 shown · page 112, #13 (overall #2,233)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins251 listings · 13 pages · page 12, #17 (overall #237)
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 (122)
Recent weekly downloads observations for vite-plugin-vue-template-inspector
Date (UTC)Weekly downloadsChange vs. previous
4+3
1-2
30
30
3-1
40
4-1
5-2
7+1
6-1
7-3
100
100
10—

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-vue-template-inspector. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.