From 7f93f63a268f8169d3c894f2a6ea2cdbb8bf7d35 Mon Sep 17 00:00:00 2001 From: Jared White Date: Mon, 20 Nov 2023 15:18:12 -0800 Subject: [PATCH] fix: re-enable CSS purging to minimize Tailwind bundles (#3720) --- sites/partners/tailwind.config.js | 5 ++--- sites/public/tailwind.config.js | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/sites/partners/tailwind.config.js b/sites/partners/tailwind.config.js index f7e033b8ff..f4ca86305b 100644 --- a/sites/partners/tailwind.config.js +++ b/sites/partners/tailwind.config.js @@ -9,15 +9,14 @@ const bloomTheme = cloneDeep(require("@bloom-housing/ui-components/tailwind.conf // bloomTheme.theme.colors.white = "#f0f0e9" module.exports = { + ...bloomTheme, purge: { enabled: process.env.NODE_ENV !== "development", content: [ "./pages/**/*.tsx", "./src/**/*.tsx", - "./layouts/**/*.tsx", - "../../ui-components/src/**/*.tsx", + "../../node_modules/@bloom-housing/ui-components/src/**/*.tsx", ], safelist: [/grid-cols-/], }, - ...bloomTheme, } diff --git a/sites/public/tailwind.config.js b/sites/public/tailwind.config.js index f7e033b8ff..f4ca86305b 100644 --- a/sites/public/tailwind.config.js +++ b/sites/public/tailwind.config.js @@ -9,15 +9,14 @@ const bloomTheme = cloneDeep(require("@bloom-housing/ui-components/tailwind.conf // bloomTheme.theme.colors.white = "#f0f0e9" module.exports = { + ...bloomTheme, purge: { enabled: process.env.NODE_ENV !== "development", content: [ "./pages/**/*.tsx", "./src/**/*.tsx", - "./layouts/**/*.tsx", - "../../ui-components/src/**/*.tsx", + "../../node_modules/@bloom-housing/ui-components/src/**/*.tsx", ], safelist: [/grid-cols-/], }, - ...bloomTheme, }