Closed guangfu closed 7 years ago
would you be interested in a PR for this?
If it doesn't affect performance too much for those that don't use it.
i guess you'd have to use either propWhiteList
or propBlackList
, since this wouldn't really make sense:
{
propWhiteList: ['font'],
propBlackList: ['font']
}
how about if you leave both of those options off, the default is to remify every prop (the equivalent of propWhiteList: ['']
now), if you supply both you get an error, and if you supply one it's observed?
maybe, in the case you tried to supply both options propWhiteList
would always override propBlackList
, and you get a warning instead?
I preferred BlackList always override WhiteList. Usually, I want to blacklist them because that have sub-pixels rendering problem in some cases.
In version 4.0.0 you can use a BlackList by just adding a wildcard to the propList:
{
propList: ['*', '!border*']`
}
sometimes need to ignore some css properties that translates px to rem, such as border. so hope to add propBlackList option