Skip to content

almilo/webpack-bundle-report

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Reporting tool to analyse Webpack bundles

Resources

License

Stars

Watchers

Forks

Packages

No packages published