Closed alexpi closed 7 years ago
I've never used a postcss.json file so I can't tell if you've used the correct syntax there.
As for the postcss-pxtorem
options: You've only included "margin" and "padding" in the propWhiteList
so only those two properties will be converted. This does not include "margin-left" or "font-size" as you've have to add those as well.
Same here, doesnt convert margins or padding or anything but fonts even if I specificy margin-top, margin-left, padding-left, etc.
@freonirons409, I'll fix if you provide a failing test.
Version 4.0.0 changes how propList works.
Hello,
My issue is that pxtorem converts only font-related properties to rem, as stated in the docs. I am using the propWhiteList to add for example margin and padding, but I get px values.
I am using a postcss.json file for my config:
Any ideas?