1.0.7 • Published 2 years ago

webpack-node-modules-analyzer v1.0.7

Weekly downloads
1
License
MIT
Repository
-
Last release
2 years ago

webpack-node-modules-analyzer

Analyze node_modules in webpack bundle, and make it visualize

Install

# By npm
$ npm install webpack-node-modules-analyzer -g

# Or by yarn
$ yarn global add webpack-node-modules-analyzer

Usage

$ node-modules-analyzer -s stats.json -r report.json -o <outputFile>

stats.json and report.json are generated by webpack-bundle-analyzer

webpack-bundle-analyzer plugin config

in webpack.config.js

const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin

module.exports = {
  ...,
  plugins: [
    ...,
    new BundleAnalyzerPlugin({
      analyzerMode: 'json',
      generateStatsFile: true
    })
  ]
}

After webpack build, stats.json and report.json will be generated in the build dir.

Output

Use --output or -o option to output file, it support .html and .json file type.

List packages

Use --list or -l option to list the packages required by files which is not npm module. And use --gt option to filter list packages which size greater then it.

1.0.7

2 years ago

1.0.6

2 years ago

1.0.7-beta.0

2 years ago

1.0.5

3 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago

1.0.0-beta.2

4 years ago

1.0.0-beta.1

4 years ago

1.0.0-beta.0

4 years ago