Umi: global 样式失效

Created on 12 Jan 2019  ·  4Comments  ·  Source: umijs/umi

和 #1002 不一样,引入某些插件后 umi.css 会丢失所有全局样式,并被引入的插件样式覆盖。多次遇到。

比如 yarn add monaco-editor 这个插件,引入后,生成的umi.css全部都是这个插件的样式,全局样式丢失。上次还有一个插件也是,忘了名字

Need Reproduce

Most helpful comment

试了一下去掉dll 就ok了

All 4 comments

给复现仓库。

@sorrycc 链接
如果config 里面没有 仓库里面的 plugins就正常(umi.css 上面是插件样式,下面是全局样式,不太合理),我后来加了 plugins 就和我描述的一致

试了一下去掉dll 就ok了

楼主已提供复现仓库,是否可以看下?同样遇到该问题,关闭 dll 后正常。 @sorrycc

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stoneWeb picture stoneWeb  ·  3Comments

sorrycc picture sorrycc  ·  4Comments

ironyfive picture ironyfive  ·  3Comments

tauruswang picture tauruswang  ·  3Comments

nguyenhuutinh picture nguyenhuutinh  ·  3Comments