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
This commit is contained in:
Oliver Davies 2020-05-20 01:54:06 +01:00
parent ab5849ae5b
commit 1b4dd26c15

View file

@ -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: [],