From 6c6585abf8c034ce132ddb58857fc6f40e6053fe Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 18 Dec 2020 00:49:55 +0000 Subject: [PATCH] Change whitelist to safelist https://tailwindcss.com/docs/upgrading-to-v2#update-purge-options-to-match-purge-css-3-0 --- web/themes/custom/opdavies/tailwind.config.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/web/themes/custom/opdavies/tailwind.config.js b/web/themes/custom/opdavies/tailwind.config.js index e2fa1a1..0bce62f 100644 --- a/web/themes/custom/opdavies/tailwind.config.js +++ b/web/themes/custom/opdavies/tailwind.config.js @@ -10,15 +10,11 @@ module.exports = { purge: { mode: 'layers', content: [ - 'templates/**/*.twig', - - // Include any classes used within config (e.g. within views). '../../../../config/**/*.yml', - - // Include any classes stored within body fields. - 'body-field-values.txt' + 'body-field-values.txt', + 'templates/**/*.twig' ], - whitelist: ['bg-gray-200'] + safelist: ['bg-gray-200'] }, theme: { extend: {