Webpack Export Stats Plugin
Webpack plugin to output export stats graph from your project
Installation
Via npm:
$ npm install webpack-export-stats-plugin --save-dev
Via yarn:
$ yarn add -D webpack-export-stats-plugin
Usage
const ExportStatsPlugin = ; const webpackConfig = ... optimization: usedExports: true plugins: patterns: 'src/**/*.(js|jsx|css)' exclude: '**/*.(stories|spec).(js|jsx)'
Configuration
options;
["**/*.*"]
)
options.patterns (default: The array of patterns to look for. Directly pass to fast-glob
[]
)
options.exclude (default: The array of patterns to not look at.
options.context
Current working directoy for patterns above. If you don't set explicitly, your webpack context will be used.
graph.json
)
options.output (default: Location where your graph will be created.
info
, value: info|verbose
)
options.log (default: info
shows number of used in other modules.verbose
contains array of modules which use that export.
2
)
options.numberOfMinDeps (default: Number of minimum dependencies to decide if exported functions is logged.
undefined
)
options.filterFunc (default: A filter function which will decide whether module is logged.