Logs your production bundle sizes in a CI friendly way.
yarn add gridsome-plugin-webpack-size
gridsome.config.js
module.exports = {
plugins: [
'gridsome-plugin-webpack-size'
]
}
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
}
}