From b5eab2ad78ba7d3e1475d85dcf87f724645be86c Mon Sep 17 00:00:00 2001 From: Jayam Srivastava Date: Wed, 26 Aug 2026 22:45:09 +0530 Subject: [PATCH] perf(css): narrow Tailwind source scanning for #235 --- src/styles/tailwind.css | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/styles/tailwind.css b/src/styles/tailwind.css index e2a61bb..012c077 100644 --- a/src/styles/tailwind.css +++ b/src/styles/tailwind.css @@ -1,4 +1,11 @@ @import 'tailwindcss' source(none); -@source '../**/*.{js,ts,jsx,tsx}'; + +/* Scan only runtime source trees. The previous ../** glob also scanned tests + and other non-runtime files, which can generate utilities that never ship. */ +@source '../app/**/*.{js,ts,jsx,tsx}'; +@source '../admin/**/*.{js,ts,jsx,tsx}'; +@source '../dashboard/**/*.{js,ts,jsx,tsx}'; +@source '../Firebase/**/*.{js,ts,jsx,tsx}'; +@source '../main.tsx'; @import 'tw-animate-css';