cuth / postcss-pxtorem

Convert pixel units to rem (root em) units using PostCSS
MIT License
2.02k stars 174 forks source link

Is include mode possible #67

Open TT1228 opened 3 years ago

TT1228 commented 3 years ago

I know pxtorem's ways to ignore px we don't wanna translate into rem: using PX and configure it with exclude and selectorBlackList option. But in my case(also in some other guy's case), i just want a small part of my project being translated into rem, using these ways will be extremely time consuming and when i run npm run serve(i am using vue),the time spent is apparently prolonged, is it possible that we can enable an include or selectorWhiteList mode? I haven't read about the source code, maybe i can pull a request.

finalight commented 3 years ago

does propList options solve that problem for you? or i'm not understanding the question correctly?