webpack-bundle-report

0.0.5 • Public • Published

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

Package Sidebar

Install

npm i webpack-bundle-report

Weekly Downloads

0

Version

0.0.5

License

MIT

Last publish

Collaborators

  • almilo