Skip to content

Commit c822058

Browse files
committed
fix: add safelist variables to postcss-purgecss #840
1 parent 8a54478 commit c822058

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/postcss-purgecss/src/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ async function purgeCSS(
3232

3333
purgeCSS.options = options;
3434

35+
if (options.variables) {
36+
purgeCSS.variablesStructure.safelist = options.safelist.variables || [];
37+
}
38+
3539
const { content, extractors } = options;
3640

3741
const fileFormatContents = content.filter(

0 commit comments

Comments
 (0)