
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
statistics-webpack-plugin
Advanced tools
statistic project
目前仅支持.vue和.js文件统计
支持vue2和vue3项目
npm install statistics-webpack-plugin --save-dev
const StatisticsWebpackPlugin = require('statistics-webpack-plugin');
module.exports = {
plugins: [
new StatisticsWebpackPlugin()
]
}
const StatisticsWebpackPlugin = require('statistics-webpack-plugin');
module.exports = {
plugins: [
new StatisticsWebpackPlugin({
regex: /<(ant-[a-z\-]+)/g, // Ant Design
})
]
}
const StatisticsWebpackPlugin = require('statistics-webpack-plugin');
module.exports = {
plugins: [
new StatisticsWebpackPlugin({
regex: /<(ant-[a-z\-]+)/g, // Ant Design
}),
new StatisticsWebpackPlugin({
regex: /<(van-[a-z\-]+)/g, // Vant UI
})
]
}
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
regex | 正则表达式,用于匹配需要统计的组件 | RegExp | /<(el-[a-z-]+)/g |
fileTypes | 要统计的文件类型 | String(vue/all) | vue |
1. 组件使用统计只在开发环境下生效
FAQs
statistics project
The npm package statistics-webpack-plugin receives a total of 0 weekly downloads. As such, statistics-webpack-plugin popularity was classified as not popular.
We found that statistics-webpack-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.