A message about ignoring properties
Currently, the easiest way to have a single property ignored is to use a capital in the pixel unit declaration.
// `px` is converted to `rem`
.convert {
font-size: 16px; // converted to 1rem
}
// `Px` or `PX` is ignored by `postcss-pxtorem` but still accepted by browsers
.ignore {
border: 1Px solid; // ignored
border-width: 2PX; // ignored
}
大致意思就是说:目前,忽略单个属性的最简单的方法是在像素单元声明中使用大写。
把px改成Px、PX就行啦,
第二个方案 : 不推荐 可能有漏网,或者不灵活
propWhiteList: [];
selectorBlackList: [],
minPixelValue: 13 // 这种小于13的都不会转换,也不好