Skip to content

Commit 5a819b3

Browse files
feat: change whitelistPatterns to safelist
The options naming for this packages has changed https://github.com/FullHuman/purgecss/tree/master/packages/postcss-purgecss it no longer accepts `whitelistPatterns` key but accepts `safelist` instead. I spent some time debugging an issue with styles not being shipped with prod environment, maybe this change will help someone avoid that :D
1 parent c48ee72 commit 5a819b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/TAILWINDCSS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const purgecssOptions = {
5252
// Leave css definitions starting with an underscore untouched.
5353
// This prevents css definitions generated by ember-css-modules
5454
// from being purged.
55-
whitelistPatterns: [/^_/]
55+
safelist: [/^_/]
5656
};
5757

5858
let cssModulesPlugins = [

0 commit comments

Comments
 (0)