2.1.0 • Published 5 years ago

next-size v2.1.0

Weekly downloads
783
License
MIT
Repository
-
Last release
5 years ago

next-size

Next-size is a next.js plugin to print browser assets sizes 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 :

2.1.0

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.1

6 years ago