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:
parent
07af67bfea
commit
7e756ee5d9
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue