Unverified Commit 7e756ee5 authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Expose totalPages to the webpack decorator (#3824)

parent 07af67bf
...@@ -314,7 +314,7 @@ export default async function getBaseWebpackConfig (dir, {dev = false, isServer ...@@ -314,7 +314,7 @@ export default async function getBaseWebpackConfig (dir, {dev = false, isServer
} }
if (typeof config.webpack === 'function') { 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 return webpackConfig
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment