1
0
mirror of https://github.com/locomotivemtl/locomotive-boilerplate.git synced 2026-01-15 00:55:08 +08:00

Fix PurgeCSS safelist regex

This commit is contained in:
Jérémy Minié
2024-01-16 15:07:09 -05:00
parent 61b6222525
commit a37c5b047a
3 changed files with 3 additions and 3 deletions

View File

@@ -1,3 +1,3 @@
{
"version": 1704463500604
"version": 1705435510121
}

View File

@@ -236,7 +236,7 @@ async function purgeUnusedCSS(outfile, label) {
keyframes: true,
safelist: {
// Keep all except .u-gc-* | .u-margin-* | .u-padding-*
standard: [ /^(((?!\bu-gc-).)*$ | (((?!\bu-margin-).)*$) | (((?!\bu-padding-).)*$))/ ]
standard: [ /^(?!.*\b(u-gc-|u-margin|u-padding)).*$/ ]
},
variables: true,
})

File diff suppressed because one or more lines are too long