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

count-component-plugin

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

count-component-plugin

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

latest
Source
npmnpm
Version
1.0.7
Version published
Maintainers
1
Created
Source

count-component-plugin

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

组件引用次数插件

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

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

image-20220313113103198

如何使用

npm i count-component-plugin

然后再webpack 的 plugin 配置如下:

js

参数类型
pathnameBoolean
startCountBoolean
isExportExcelBoolean

然后直接webpack 直接run 就好了

最后出现这样的结果

Keywords

webpack

FAQs

Package last updated on 20 Mar 2022

Related posts