配置项devServer貌似不支持webpack的contentBase等相关配置项? #6036
Unanswered
hejun200613224
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@ycjcl868 看下。 |
Beta Was this translation helpful? Give feedback.
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.
Uh oh!
There was an error while loading. Please reload this page.
-
项目需要与已有其他资源联合部署,在本地dev时,原来的做法是配置webpack devServer 的 contentBase 等相关配置项实现dev时的外部资源引入。
现使用antd-pro默认模板及umi创建新需求,发现在/config/config.dev.js中,无论是直接配置devServer如下
亦或是使用chainWebpack方式覆盖配置如下
均无法正常引入外部资源。
Beta Was this translation helpful? Give feedback.
All reactions