See what's launched

The next gen Gatsby is here Performance, developer velocity, and scaling to meet Enterprise needs - See what’s launched

Sign Up for Free
Community Plugin
View plugin on GitHub

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:

  • disable: Set to true to toggle off the analyzer. Defaults to false
plugins: [
	{
		resolve: 'gatsby-plugin-webpack-bundle-analyzer',
		options: {
			analyzerPort: 3000
		},
	},
]
© 2022 Gatsby, Inc.