Add a progress bar to next.js
Switch branches/tags
Nothing to show
Clone or download
Latest commit 653b0d4 May 18, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo add profiler screenshot May 18, 2018
.gitignore add .gitignore Apr 24, 2018
index.js progressBar config overrides default config May 18, 2018
package.json version 1.0.0 May 18, 2018
readme.md add profiler screenshot May 18, 2018
yarn.lock add webpack dependency (for dev and test only) May 18, 2018

readme.md



Installation

yarn add next-progressbar

Usage

Edit your next config :

// next.config.js
const withProgressBar = require('next-progressbar')

module.exports = withProgressBar({
  // rest of your next config
})

Configuration

You can configure this plugin. The options are passed down to webpackbar.

For more information, have a look at the options available for webpackbar.

For example, you can enable the profiler :

// next.config.js
const withProgressBar = require('next-progressbar')

module.exports = withProgressBar({
  progressBar: {
    profile: true
  }
  // rest of your next config
})