Repository navigation
Umi4 如何查看 webpack 配置? #11647
Unanswered
yuanliu147
asked this question in
Q&A
Replies: 1 comment 1 reply
// .umirc.ts
chainWebpack(config) {
console.log('webpack config:', config.toConfig())
return config
},注意这个方法只能查看 webpack 配置而不能修改,修改需要通过 webpack chain 的方式对相应的规则修改,但通常你不需要修改 webpack chain ,因为绝大部分配置已经有 独立的配置项 了。 |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Umi4 如何查看 webpack 配置?
All reactions