gridsome-plugin-bundle-analyzer
v1.0.0
Published
[![npm version](https://img.shields.io/npm/v/gridsome-plugin-bundle-analyzer)](https://www.npmjs.com/package/gridsome-plugin-bundle-analyzer)
Downloads
1,447
Readme
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