Skip to content

Instantly share code, notes, and snippets.

@marcinczenko
Created April 21, 2021 12:27
Show Gist options
  • Save marcinczenko/18dc3f447677c76d42d839ff01b5eed5 to your computer and use it in GitHub Desktop.
Save marcinczenko/18dc3f447677c76d42d839ff01b5eed5 to your computer and use it in GitHub Desktop.
NextJs: bundle compilation time in development
const WebpackBar = require('webpackbar')
module.exports = {
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
// Note: we provide webpack above so you should not `require` it
// Perform customizations to webpack config
config.plugins.push(new WebpackBar({
name: 'Bundle'
}))
// Important: return the modified config
return config
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment