Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub


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


With Yarn:

yarn add gatsby-plugin-webpack-bundle-analyzer

Or with npm:

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


// In your gatsby-config.js
plugins: [


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,
© 2023 Gatsby, Inc.