postcss-pxtorem适配问题

问题

新项目使用postcss-pxtorem适配,正常情况px会转为rem,本地和测试环境都正常,正式环境部分px没有转为rem,导致ui显示异常

解决

尝试降低postcss-pxtorem版本,原本使用的postcss-pxtorem版本为6.0.0,降低版本到5.1.1之后线上ui正常了。

posted @ 2021-08-27 11:14  木瓜袋子  阅读(475)  评论(0)    收藏  举报