This package has been deprecated

Author message:

This package is deprecated because it can slow down your builds. Upgrade to Next.js 9+ to get Build Output Statistics out-of-the-box.

next-size

2.1.0 • Public • Published

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 and wrap you config with withSize.

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

Options

You can specify printRawSize to print raw asset sizes instead of gzipped sizes.

// next.config.js
const withSize = require('next-size')
 
module.exports = withSize({
  size: {
    printRawSize: true
  }
})

More

Inspired by :

Readme

Keywords

none

Package Sidebar

Install

npm i next-size

Weekly Downloads

58

Version

2.1.0

License

MIT

Unpacked Size

6.58 kB

Total Files

6

Last publish

Collaborators

  • lucleray