Created
April 21, 2021 12:27
-
-
Save marcinczenko/18dc3f447677c76d42d839ff01b5eed5 to your computer and use it in GitHub Desktop.
NextJs: bundle compilation time in development
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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