postcss-pxtorem icon indicating copy to clipboard operation
postcss-pxtorem copied to clipboard

Is include mode possible

Open TT1228 opened this issue 5 years ago • 1 comments

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.

TT1228 avatar Oct 14 '20 11:10 TT1228

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

finalight avatar Oct 17 '20 09:10 finalight