Skip to content
Next.js plugin to print browser assets sizes
JavaScript CSS
Branch: master
Clone or download
dependabot-preview and lucleray Bump lint-staged from 8.1.7 to 9.2.0 (#31)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 8.1.7 to 9.2.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](okonet/lint-staged@v8.1.7...v9.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Latest commit e05ddcd Jul 11, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example Bump js-yaml from 3.12.0 to 3.13.1 in /example (#11) Jun 6, 2019
lib filter .map files Feb 21, 2019
.gitignore first commit Nov 7, 2018
demo.png add demo and more Nov 7, 2018
index.js misc fix Jan 25, 2019
package.json Bump lint-staged from 8.1.7 to 9.2.0 (#31) Jul 11, 2019
readme.md test-readme Nov 7, 2018
yarn.lock Bump lint-staged from 8.1.7 to 9.2.0 (#31) Jul 11, 2019

readme.md

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 :

You can’t perform that action at this time.