travis-r6s / gridsome-plugin-webpack-size

Logs your production bundle sizes in a CI friendly way

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
  }
}

About

Logs your production bundle sizes in a CI friendly way


Languages

Language:JavaScript 100.0%