Skip to content

ladjzero/import-stats-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

name type default description
imports string[] [] target libraries

Output

About

List the import-statement count of library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published