mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Make PurgeCSS regex compatible with node 8
This commit is contained in:
parent
ec0b7a2be1
commit
4c3e97c9d4
@ -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…
x
Reference in New Issue
Block a user