Skip to content

Commit

Permalink
fix: siteConfig.chainWebpack was executed twice.
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Nov 17, 2018
1 parent 17a03f2 commit 0d45cf4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions packages/@vuepress/core/lib/webpack/createClientConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ module.exports = function createClientConfig (ctx) {
}])
}

if (ctx.siteConfig.chainWebpack) {
ctx.siteConfig.chainWebpack(config, false /* isServer */)
}

ctx.pluginAPI.options.chainWebpack.syncApply(config, false /* isServer */)

return config
Expand Down
4 changes: 0 additions & 4 deletions packages/@vuepress/core/lib/webpack/createServerConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ module.exports = function createServerConfig (ctx) {
}])
}

if (ctx.siteConfig.chainWebpack) {
ctx.siteConfig.chainWebpack(config, true /* isServer */)
}

ctx.pluginAPI.options.chainWebpack.syncApply(config, true /* isServer */)

return config
Expand Down

0 comments on commit 0d45cf4

Please sign in to comment.