From fe47bf8af1d4b63fbcfda20300f57e00cbe537f0 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Wed, 29 Nov 2023 15:48:51 +0530 Subject: [PATCH] fix: safelist some tailwind classes to avoid purging dynamically generated lead/deal status color --- frontend/tailwind.config.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js index 81e9f4b8..704f5c8c 100644 --- a/frontend/tailwind.config.js +++ b/frontend/tailwind.config.js @@ -1,13 +1,12 @@ module.exports = { - presets: [ - require('frappe-ui/src/utils/tailwind.config') - ], + presets: [require('frappe-ui/src/utils/tailwind.config')], content: [ - "./index.html", - "./src/**/*.{vue,js,ts,jsx,tsx}", - "./node_modules/frappe-ui/src/components/**/*.{vue,js,ts,jsx,tsx}", - "../node_modules/frappe-ui/src/components/**/*.{vue,js,ts,jsx,tsx}", + './index.html', + './src/**/*.{vue,js,ts,jsx,tsx}', + './node_modules/frappe-ui/src/components/**/*.{vue,js,ts,jsx,tsx}', + '../node_modules/frappe-ui/src/components/**/*.{vue,js,ts,jsx,tsx}', ], + safelist: [{ pattern: /!text-/ }], theme: { extend: {}, },