Skip to content

Commit 0d45cf4

Browse files
committed
fix: siteConfig.chainWebpack was executed twice.
1 parent 17a03f2 commit 0d45cf4

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

packages/@vuepress/core/lib/webpack/createClientConfig.js

-4
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@ module.exports = function createClientConfig (ctx) {
6767
}])
6868
}
6969

70-
if (ctx.siteConfig.chainWebpack) {
71-
ctx.siteConfig.chainWebpack(config, false /* isServer */)
72-
}
73-
7470
ctx.pluginAPI.options.chainWebpack.syncApply(config, false /* isServer */)
7571

7672
return config

packages/@vuepress/core/lib/webpack/createServerConfig.js

-4
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@ module.exports = function createServerConfig (ctx) {
5656
}])
5757
}
5858

59-
if (ctx.siteConfig.chainWebpack) {
60-
ctx.siteConfig.chainWebpack(config, true /* isServer */)
61-
}
62-
6359
ctx.pluginAPI.options.chainWebpack.syncApply(config, true /* isServer */)
6460

6561
return config

0 commit comments

Comments
 (0)