Closed robneu closed 8 years ago
@robneu i think you were just missing that they should be called as functions like the example here:
Haha I was just missing parenthesis? 😕
yah, though im not sure that package does what you're thinking as it sets px fallbacks from rem values not the reverse.
this might be closer to desired? https://github.com/ggkovacs/node-px2rem
Ah, yeah thanks man! https://github.com/cuth/postcss-pxtorem is the one I mean to test out originally. I'll give this another try today.
Seems like this is working as-expected. Thanks for the help @ctalkington!
I hate using relative values when writing CSS. I find it much easier to define sizes in pixels, mostly because it's the way I've worked for years and I don't feel like re-training my brain to another unit.
That said, I recognize that relative units do have benefits, so I'd like to try to get node-pixrem working through grunt-postcss. I tried loading it in, but for whatever reason I couldn't get it to work.