1.0.2 • Published 4 years ago

gridsome-plugin-webpack-size v1.0.2

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

gridsome-plugin-webpack-size

Logs your production bundle sizes in a CI friendly way.

Screenshot showing the output of this plugin

Installation

yarn add gridsome-plugin-webpack-size

Usage

gridsome.config.js

module.exports = {
  plugins: [
    'gridsome-plugin-webpack-size'
  ]
}

Configuration

You can specify whether webpack-size should run in development mode too, and if it should create a size report JSON file.

{
  use: 'gridsome-plugin-webpack-size',
  options: {
    development: true,
    writeFile: true
  }
}