Make PurgeCSS regex compatible with node 8
This commit is contained in:
parent
ec0b7a2be1
commit
4c3e97c9d4
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ export default function purgeUnusedUtilities(config) {
|
|||
},
|
||||
purgecss({
|
||||
content: Array.isArray(config.purge) ? config.purge : config.purge.paths,
|
||||
defaultExtractor: content => content.match(/[^<>"'`\s]+(?<![:=])/g) || [],
|
||||
defaultExtractor: content => content.match(/[^<>"'`\s]*[^<>"'`\s:]/g) || [],
|
||||
}),
|
||||
])
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue