1.0.7 • Published 3 years ago
webpack-node-modules-analyzer v1.0.7
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-analyzerUsage
$ node-modules-analyzer -s stats.json -r report.json -o <outputFile>
stats.jsonandreport.jsonare 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
3 years ago
1.0.6
3 years ago
1.0.7-beta.0
3 years ago
1.0.5
4 years ago
1.0.4
5 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.3
6 years ago
1.0.0
6 years ago
1.0.0-beta.2
6 years ago
1.0.0-beta.1
6 years ago
1.0.0-beta.0
6 years ago