Skip to content

engineerapart/next-size

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

next-size

Next-size is a next.js plugin to print browser assets sizes when running next build.

browser assets sizes appear magically when running next build ✨

🎁 Check out the example folder folder if you want to try next-size (the example includes css and dynamic imports).

Installation

yarn add next-size --dev

Usage

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 next-build

More

Inspired by :

Packages

No packages published

Languages

  • JavaScript 99.2%
  • CSS 0.8%