1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Expose totalPages to the webpack decorator (#3824)

This commit is contained in:
Tim Neutkens 2018-02-17 12:37:33 +01:00 committed by GitHub
parent 07af67bfea
commit 7e756ee5d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -314,7 +314,7 @@ export default async function getBaseWebpackConfig (dir, {dev = false, isServer
}
if (typeof config.webpack === 'function') {
webpackConfig = config.webpack(webpackConfig, {dir, dev, isServer, buildId, config, defaultLoaders})
webpackConfig = config.webpack(webpackConfig, {dir, dev, isServer, buildId, config, defaultLoaders, totalPages})
}
return webpackConfig