0.0.1 • Published 4 years ago

import-stats-webpack-plugin v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

import-stats-webpack-plugin

Print the import-statement counts of the target package. It would be useful to track the refactor progress of immense libraries.

Install

yarn add --dev import-stats-webpack-plugin

Usage

webpack.config.js

const ImportStatsPlugin = require('import-stats-webpack-plugin');

module.exports = {
  // ...
  plugins: [
    new ImportStatsPlugin({ imports: ['antd'] })
  ]
}

Options

nametypedefaultdescription
importsstring[][]target libraries

Output

npm.io