Closed ms-fadaei closed 3 years ago
I realize that I must use whitelistPatterns
instead of whitelist
I believe you have to use whitelistPatterns
instead of whitelist
in order to use regex.
See the PurgeCSS 2.x docs for whistlisting patterns here: https://github.com/FullHuman/purgecss/blob/5314e41edf328e2ad2639549e1587b82a964a42e/docs/whitelisting.md#patterns
Oh, you got it already! 😆
When I use regex in the whitelist option, the PurgeCSS still removed those rules