1.0.0 • Published 4 years ago

gridsome-plugin-bundle-analyzer v1.0.0

Weekly downloads
151
License
MIT
Repository
github
Last release
4 years ago

Gridsome Bundle Analyzer

npm version

Analyses your Gridsome bundle using Webpack Bundle Analyzer.

webpack bundle analyzer zoomable treemap

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