mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(cli): incorrect merge webpack config
This commit is contained in:
parent
68d47fe16a
commit
443c221af0
@ -108,7 +108,7 @@ export function getWebpackConfig(defaultConfig: WebpackConfig): object {
|
||||
// 如果是函数形式,可能并不仅仅是添加额外的处理流程,而是在原有流程上进行修改
|
||||
// 比如修改markdown-loader,添加options.enableMetaData
|
||||
if (typeof config === 'function') {
|
||||
return config(defaultConfig);
|
||||
return merge(defaultConfig, config(defaultConfig));
|
||||
}
|
||||
|
||||
return merge(defaultConfig, config);
|
||||
|
Loading…
x
Reference in New Issue
Block a user