gatsby-plugin-webpack-size

2.0.1 • Public • Published

Gatsby Plugin Webpack Size

NPM   NPM downloads

Implements CI friendly bundle size logging for your production builds.

Screenshot

☁️ Installation

npm i gatsby-plugin-webpack-size

🛫 Setup

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

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

⚙️ Configuration

The only custom option implemented is development. All other options are passed to the size-plugin.

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

Package Sidebar

Install

npm i gatsby-plugin-webpack-size

Weekly Downloads

214

Version

2.0.1

License

MIT

Unpacked Size

2.75 kB

Total Files

4

Last publish

Collaborators

  • axe312