From 1b4dd26c15a23aaa203c238361cbf7277aa170b9 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 20 May 2020 01:54:06 +0100 Subject: [PATCH] Include file in purge settings Include the file containing the body field values within the `purge` settings so that Tailwind uses it and prevents any classes within it from being removed from the production CSS. References #55 --- web/themes/custom/opdavies/tailwind.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/themes/custom/opdavies/tailwind.config.js b/web/themes/custom/opdavies/tailwind.config.js index 0b53ba8..c4ee61f 100644 --- a/web/themes/custom/opdavies/tailwind.config.js +++ b/web/themes/custom/opdavies/tailwind.config.js @@ -8,7 +8,10 @@ module.exports = { 'templates/**/*.twig', // Include any classes used within config (e.g. within views). - '../../../../config/**/*.yml' + '../../../../config/**/*.yml', + + // Include any classes stored within body fields. + 'body-field-values.txt' ], options: { whitelist: [],