Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krmax44/gridsome-plugin-bundle-analyzer
Analyses your Gridsome bundle using Webpack Bundle Analyzer
https://github.com/krmax44/gridsome-plugin-bundle-analyzer
Last synced: 10 days ago
JSON representation
Analyses your Gridsome bundle using Webpack Bundle Analyzer
- Host: GitHub
- URL: https://github.com/krmax44/gridsome-plugin-bundle-analyzer
- Owner: krmax44
- License: mit
- Created: 2020-06-21T11:15:57.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-21T11:19:49.000Z (over 4 years ago)
- Last Synced: 2024-11-10T23:40:37.398Z (2 months ago)
- Language: JavaScript
- Size: 86.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gridsome Bundle Analyzer
[![npm version](https://img.shields.io/npm/v/gridsome-plugin-bundle-analyzer)](https://www.npmjs.com/package/gridsome-plugin-bundle-analyzer)
Analyses your Gridsome bundle using [Webpack Bundle Analyzer](https://github.com/webpack-contrib/webpack-bundle-analyzer).
![webpack bundle analyzer zoomable treemap](https://cloud.githubusercontent.com/assets/302213/20628702/93f72404-b338-11e6-92d4-9a365550a701.gif)
## Usage
```bash
yarn add -D gridsome-plugin-bundle-analyzer
``````js
// gridsome.config.jsmodule.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