ignore raw content when register dependencies (#4542)

This commit is contained in:
Brad Cornes 2021-06-02 13:50:55 +01:00 • committed by GitHub
parent 1600fbdf02
commit 45ead43fb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,7 @@ export default function purgeUnusedUtilities(config, configChanged, registerDepe
let content = Array.isArray(config.purge) ? config.purge : config.purge.content
for (let maybeGlob of content) {
for (let maybeGlob of content.filter((item) => typeof item === 'string')) {
let { is, base } = parseGlob(maybeGlob)
if (is.glob) {