Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gatsby-plugin-webpack-bundle-analyzer

escaladesports2.4kMIT1.0.5

A Gatsby plugin to help analyze your bundle content.

gatsby, gatsby-plugin, webpack, bundle, analyzer, webpack-bundle-analyzer

readme

gatsby-plugin-webpack-bundle-analyzer

A Gatsby plugin to help analyze your bundle content with webpack-bundle-analyzer.

Install

With Yarn:

yarn add gatsby-plugin-webpack-bundle-analyzer

Or with npm:

npm install --save gatsby-plugin-webpack-bundle-analyzer

Usage

// In your gatsby-config.js
plugins: [
    'gatsby-plugin-webpack-bundle-analyzer',
]

Options

See original plugin for a list of available options.

Additional options:

  • production: Run the analyzer on a production build. Defaults to false
  • disable: Set to true to toggle off the analyzer. Defaults to false
plugins: [
    {
        resolve: 'gatsby-plugin-webpack-bundle-analyzer',
        options: {
            analyzerPort: 3000,
            production: true,
        },
    },
]