Currently whitelistPatternsChildren and whitelistPatterns https://www.purgecss.com/whitelisting#patterns
are not initialised ( as empty array) in the internal plugin config and so skipped by this function:
const mergedConfig = Object.entries(purgeCSS).reduce((options, [key, value]) => {
const defaultValue = defaults[key]
if (value && typeof value !== 'function' && Array.isArray(defaultValue)) {
// Merge value with default value if array
value = defaultValue.concat(value)
} else if (typeof value === 'function') {
// Executed value functions and provide default value as param
value = value(defaultValue)
}
// Finally assign
options[key] = value
return options
}, {})
Currently whitelistPatternsChildren and whitelistPatterns https://www.purgecss.com/whitelisting#patterns are not initialised ( as empty array) in the internal plugin config and so skipped by this function:
PR to come