Gridsome Bundle Analyzer
Analyses your Gridsome bundle using Webpack Bundle Analyzer.
Usage
yarn add -D gridsome-plugin-bundle-analyzer
// 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
},
},
],
};
TODO
- sometimes, the plugin is runs twice for some reason