count-component-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

count-component-plugin

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

组件引用次数插件

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

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

image-20220313113103198

如何使用

npm i count-component-plugin

然后再webpack 的 plugin 配置如下:

js

参数 类型
pathname Boolean
startCount Boolean
isExportExcel Boolean

然后直接webpack 直接run 就好了

最后出现这样的结果

Readme

Keywords

Package Sidebar

Install

npm i count-component-plugin

Weekly Downloads

3

Version

1.0.7

License

ISC

Unpacked Size

62.1 kB

Total Files

12

Last publish

Collaborators

  • wangzhengfei