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.
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.
About vite-plugin-vue-template-inspector
vite-plugin-vue-template-inspector
开发插件:在页面上 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 时,仍会执行这段脚本。
选项
| 选项 | 默认 | 说明 |
|---|---|---|
enable | true | 为 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
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 (122)Similar npm Webpack plugins plugins
All 20 vite-plugin-vue-template-inspector 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-vue-template-inspector. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.