From e4b1aa64d1bc1e7f0fc483cce4c56e89b5b88e19 Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Thu, 25 May 2023 10:34:10 +0300 Subject: [PATCH] Fix tailwind safelist (#2966) --- assets/tailwind.config.js | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/assets/tailwind.config.js b/assets/tailwind.config.js index 4b5bf5459..83ae7fcb7 100644 --- a/assets/tailwind.config.js +++ b/assets/tailwind.config.js @@ -1,15 +1,17 @@ const colors = require('tailwindcss/colors') module.exports = { - purge: [ - './js/**/*.js', - '../lib/plausible_web/templates/**/*.html.eex', - ], - safelist: [ - // PlausibleWeb.StatsView.stats_container_class/1 uses this class - // it's not used anywhere else in the templates or scripts - "max-w-screen-xl" - ], + purge: { + content: [ + './js/**/*.js', + '../lib/plausible_web/templates/**/*.html.eex', + ], + safelist: [ + // PlausibleWeb.StatsView.stats_container_class/1 uses this class + // it's not used anywhere else in the templates or scripts + "max-w-screen-xl" + ] + }, darkMode: 'class', theme: { container: {