@bundle-analyzer/gatsby-plugin

Bundle Analyzer Gatsby plugin.

Usage no npm install needed!

<script type="module">
  import bundleAnalyzerGatsbyPlugin from 'https://cdn.skypack.dev/@bundle-analyzer/gatsby-plugin';
</script>

README

@bundle-analyzer/gatsby-plugin

Official Gatsby plugin for with Bundle Analyzer service.

Install

npm install --save-dev @bundle-analyzer/gatsby-plugin

Usage

gatsby-config.js

plugins: [
  {
    resolve: '@bundle-analyzer/gatsby-plugin',
    options: { token: '<repository-token>' },
  },
]

Options

token

You can specify the token using options or environment variable BUNDLE_ANALYZER_TOKEN.

configFile

You can specify a custom configuration file.

Complete documentation

👉 See full documentation

License

MIT