From 5a819b3881726d22c99ca216828eb37588c0a504 Mon Sep 17 00:00:00 2001 From: Bartlomiej Dudzik Date: Fri, 21 May 2021 16:41:29 +0200 Subject: [PATCH] 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 --- docs/TAILWINDCSS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/TAILWINDCSS.md b/docs/TAILWINDCSS.md index 742cdc89..9c77a9f9 100644 --- a/docs/TAILWINDCSS.md +++ b/docs/TAILWINDCSS.md @@ -52,7 +52,7 @@ const purgecssOptions = { // Leave css definitions starting with an underscore untouched. // This prevents css definitions generated by ember-css-modules // from being purged. - whitelistPatterns: [/^_/] + safelist: [/^_/] }; let cssModulesPlugins = [