webpack-bundle-report
v0.0.5
Published
Reporting tool to analyse Webpack bundles
Downloads
2
Readme
webpack-bundle-report
Reporting tool to analyse Webpack bundles
Installation:
npm i -g webpack-bundle-report
Usage from JS:
var webpackBundleReport = require('webpack-bundle-report'),
webpackConfigurationPath = path.resolve('webpack.config.js'),
webpackConfiguration = require(webpackConfigurationPath);
webpackBundleReport(webpackConfiguration, function (error, report) {
if (error) {
throw new Error(error);
}
console.log(report);
});
Usage from CLI:
wbr webpack.config.js > report.txt
wbr [--stats|-s] stats.json > report.txt