Next-size is a next.js plugin to print browser assets sizes when running
🎁Check out the example folder folder if you want to try
next-size(the example includes css and dynamic imports).
yarn add next-size --dev
Edit your next configuration :
// next.config.js const withSize = require('next-size') module.exports = withSize()
The size of the assets created will be showed when you run
Inspired by :