A Gatsby plugin to help analyze your bundle content.
npm install gatsby-plugin-webpack-bundle-analyzerA Gatsby plugin to help analyze your bundle content with webpack-bundle-analyzer.
With Yarn:
``bash`
yarn add gatsby-plugin-webpack-bundle-analyzer
Or with npm:
`bash`
npm install --save gatsby-plugin-webpack-bundle-analyzer
`javascript`
// In your gatsby-config.js
plugins: [
'gatsby-plugin-webpack-bundle-analyzer',
]
See original plugin for a list of available options.
Additional options:
- production: Run the analyzer on a production build. Defaults to falsedisable
- : Set to true to toggle off the analyzer. Defaults to false
`javascript``
plugins: [
{
resolve: 'gatsby-plugin-webpack-bundle-analyzer',
options: {
analyzerPort: 3000,
production: true,
},
},
]