Skip to content

Commit 612124c

Browse files
committed
feat: purgecss deep keep flickity-* classes, stylelint selector-class-pattern allow e.g. fontawesome class e.g. ".svg-inline--fa"
1 parent 9b1fc8d commit 612124c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.stylelintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
}
1313
],
1414
"number-leading-zero": "never",
15-
"scss/at-rule-no-unknown": true
15+
"scss/at-rule-no-unknown": true,
16+
"selector-class-pattern": "^([a-z][a-z0-9]*)(--?[a-z0-9]+)*$"
1617
}
1718
}

postcss.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ module.exports = {
2626
/data-v-.*/,
2727
/^(svg-inline--fa|fa-)/, // fontawesome
2828
],
29-
deep: [],
29+
deep: [
30+
/^(flickity-)/,
31+
],
3032
},
3133
}),
3234
],

0 commit comments

Comments
 (0)