# gatsby-plugin-webpack-size

> Logs your production bundle sizes in a CI friendly way

Latest version **2.0.1** (published 2021-03-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install gatsby-plugin-webpack-size
pnpm add gatsby-plugin-webpack-size
yarn add gatsby-plugin-webpack-size
bun add gatsby-plugin-webpack-size
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2021-03-08 |
| First published | 2018-08-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 18 |
| Author | Benedikt Rötsch |
| Maintainers | axe312 |
| Keywords | gatsby, gatsby-plugin, webpack, bundle |

## Links

- npm: https://www.npmjs.com/package/gatsby-plugin-webpack-size
- Repository: https://github.com/axe312ger/gatsby-plugin-webpack-size
- Homepage: https://github.com/axe312ger/gatsby-plugin-webpack-size/
- Issues: https://github.com/axe312ger/gatsby-plugin-webpack-size/issues
- npm.io page: https://npm.io/package/gatsby-plugin-webpack-size

## Dependencies (1)

- [size-plugin](https://npm.io/package/size-plugin.md) ^3.0.0

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 2.0.1 (latest) — 2021-03-08
- 2.0.0 — 2021-03-08
- 1.0.0 — 2019-06-20
- 0.0.3 — 2018-10-03
- 0.0.2 — 2018-08-25
- 0.0.1 — 2018-08-25

## README

# Gatsby Plugin Webpack Size

<p align="center">
  <a href="https://www.npmjs.com/package/gatsby-plugin-webpack-size">
    <img src="https://img.shields.io/npm/v/gatsby-plugin-webpack-size.svg" alt="NPM">
  </a>
  &nbsp;
  <a href="http://npm-stat.com/charts.html?package=gatsby-plugin-webpack-size">
    <img src="https://img.shields.io/npm/dm/gatsby-plugin-webpack-size.svg" alt="NPM downloads">
  </a>
</p>

> Implements CI friendly bundle size logging for your production builds.

![Screenshot](./screenshot.png)

## ☁️ Installation

```sh
npm i gatsby-plugin-webpack-size
```

## 🛫 Setup

Add `'gatsby-plugin-webpack-size'` to the plugins in your `gatsby-config.js` file.

```js
module.exports = {
  plugins: [
    `gatsby-plugin-webpack-size`
  ]
}
```

## ⚙️ Configuration

The only custom option implemented is `development`. All other options are passed to the [size-plugin](https://github.com/GoogleChromeLabs/size-plugin).

```js
module.exports = {
  plugins: [
    {
      resolve: `gatsby-plugin-webpack-size`,
      options: {
        // Set to true to show bundle sizes in development mode as well
        development: true
      }
    }
  ]
}

```

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