Closed sndrs closed 7 years ago
I see how this is powerful but it might be a little confusing for people since propWhiteList has default properties.
How about something like this:
{
propList: ['~font', 'line-height', 'letter-spacing']
}
This would be the same as the current defaults. ~
allows "font" to match "font-size"
{
propList: ['~margin', '!margin-left']
}
Match all "margin" properties expect "margin-left"
{
propList: ['*', '!~border']
}
Match everything except all "border" properties
{
propList: []
}
Still match everything
Support propWhiteList -> propList for legacy.
Added PR #29
Adds a
propBlackList
(ref #25).Leaves the
propWhiteList
behaviour intact, but thepropBlackList
will override it: