[](https://www.npmjs.com/package/gridsome-plugin-bundle-analyzer)
npm install gridsome-plugin-bundle-analyzer
Analyses your Gridsome bundle using Webpack Bundle Analyzer.
!webpack bundle analyzer zoomable treemap
``bash`
yarn add -D gridsome-plugin-bundle-analyzer
`js
// gridsome.config.js
module.exports = {
plugins: ['gridsome-plugin-bundle-analyzer'],
};
// or with options
module.exports = {
plugins: [
{
use: 'gridsome-plugin-bundle-analyzer',
options: {
onlyProduction: true, // only production bundle will be analyzed by default
analyzerOptions: {}, // see https://github.com/webpack-contrib/webpack-bundle-analyzer
},
},
],
};
``
- sometimes, the plugin is runs twice for some reason