Umi: devServer一些配置无效

Created on 20 Jun 2019  ·  2Comments  ·  Source: umijs/umi

想把警告和错误直接显示在浏览器页面中而不是控制台,试了以下两种配置无效:

devServer: {
    overlay: {
      warnings: true,
      errors: true
    }
}
chainWebpack(config) {
    config.devServer
        .overlay({
             warnings: true,
             errors: true,
        })
    }
}

该如何配置呢?

All 2 comments

overlay 默认就有了,无需配置。

host配置也无效,我们需要使用域名来开发,怎么办

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stoneWeb picture stoneWeb  ·  3Comments

tauruswang picture tauruswang  ·  3Comments

afc163 picture afc163  ·  3Comments

kitebear picture kitebear  ·  3Comments

ddzy picture ddzy  ·  3Comments