purgecss.config.js
.raw
property instead of a filename. To work properly with custom extractors you need to pass the extension
property along with the raw content.whitelist
and whitelistPatterns
..random
, #yep
, button
will be left in the final CSS.whitelistPatterns
.red
such as .bg-red
will be left in the final CSS.whitelistPatternsChildren
. Contrary to whitelistPatterns
, it will also whitelist children of the selectors.red p
or .bg-red .child-of-bg
will be left in the final CSS.keyframes
option to true
.fontFace
option to true
rejected
option.