# webpack-bundle-stats-plugin

> Export internal bundling details from Webpack

Latest version **1.0.0** (published 2024-03-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install webpack-bundle-stats-plugin
pnpm add webpack-bundle-stats-plugin
yarn add webpack-bundle-stats-plugin
bun add webpack-bundle-stats-plugin
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2024-03-21 |
| First published | 2022-10-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Scott Mikula |
| Maintainers | smikula |

## Links

- npm: https://www.npmjs.com/package/webpack-bundle-stats-plugin
- Repository: https://github.com/smikula/webpack-bundle-stats-plugin
- Homepage: https://github.com/smikula/webpack-bundle-stats-plugin#readme
- Issues: https://github.com/smikula/webpack-bundle-stats-plugin/issues
- npm.io page: https://npm.io/package/webpack-bundle-stats-plugin

## Recent versions

- 1.0.0 (latest) — 2024-03-21
- 0.3.0 — 2023-04-24
- 0.2.1 — 2023-04-14
- 0.2.0 — 2023-03-24
- 0.1.2 — 2022-10-14
- 0.1.1 — 2022-10-13
- 0.1.0 — 2022-10-12

## README

# 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](https://webpack.js.org/api/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

```typescript
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)

---
_Source: https://npm.io/package/webpack-bundle-stats-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
