New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

count-compoent-plugin

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

count-compoent-plugin

统计项目中一个组件引用次数的 webpack 插件

unpublished
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

count-compoent-plugin

统计项目中一个组件引用次数的 webpack 插件

组件引用次数插件

主要是用来统计项目中某个组件 引用的次数 , 项目对于 公共组件库的引用次数的统计

其实或者也可以 统计 引入某个 某个包的 函数引用次数

image-20220313113103198

如何使用

npm i ui-counter-plugin

然后再webpack 的 plugin 配置如下:

js

有3个参数:

  • 第一个参数 就是你的包名字 string
  • 第二个参数 用于是否开启检测 boolen
  • 第三个参数就是 用于是否导出excel

然后直接webpack 直接run 就好了

最后出现这样的结果

FAQs

Package last updated on 19 Mar 2022

Related posts