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:
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"version": 1704463500604
|
"version": 1705435510121
|
||||||
}
|
}
|
||||||
@@ -236,7 +236,7 @@ async function purgeUnusedCSS(outfile, label) {
|
|||||||
keyframes: true,
|
keyframes: true,
|
||||||
safelist: {
|
safelist: {
|
||||||
// Keep all except .u-gc-* | .u-margin-* | .u-padding-*
|
// 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,
|
variables: true,
|
||||||
})
|
})
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user