webpack-bundle-stats-plugin

v1.0.0
Export internal bundling details from Webpack

webpack-bundle-stats-plugin

Webpack-bundle-stats-plugin is a Webpack plugin that exports internal details about Webpack's bundle compilation process. Webpack has its own mechanism for exporting compilation stats, but it doesn't contain the full breadth of data available at compilation time. The goal of this plugin is to make all that data accessible in a form that can be consumed by other tools.

Usage

new BundleStatsPlugin(options)

Options

The options object supports the following properties:

  • outputFile (string): File path to which write the output JSON (optional)
  • onComplete ((stats: BundleStats) => void): Callback to call with the BundleStats object (optional)
npm i webpack-bundle-stats-plugin

Metadata

  • MIT
  • Whatever
  • Scott Mikula
  • released 3/21/2024

Downloads

Maintainers