Skip to content

Commit

Permalink
fix: re-enable CSS purging to minimize Tailwind bundles (#3720)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredcwhite authored Nov 20, 2023
1 parent 9b75efe commit 7f93f63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions sites/partners/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
5 changes: 2 additions & 3 deletions sites/public/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

0 comments on commit 7f93f63

Please sign in to comment.