Skip to content

perf: optimize Tailwind CSS output for production#774

Open
Ademiitura wants to merge 1 commit into
Samuel1-ona:mainfrom
Ademiitura:fix/654-optimize-tailwind-css-output
Open

perf: optimize Tailwind CSS output for production#774
Ademiitura wants to merge 1 commit into
Samuel1-ona:mainfrom
Ademiitura:fix/654-optimize-tailwind-css-output

Conversation

@Ademiitura

Copy link
Copy Markdown

Closes #654

Changes

  • Added cssnano minification in production via PostCSS config
  • Enabled critical CSS inlining via Next.js experimental.optimizeCss
  • Confirmed Tailwind v4's built-in purging is active across all content paths
  • Replaced broad tw-animate-css import with only the keyframes actually used in the app (spin, pulse, bounce, ping)

Bundle Size Analysis

Minified CSS output: ~141KB. Tailwind v4 generates @property declarations and 169 @supports color-mix() fallback blocks by design which account for the majority of the bundle size and cannot be purged without framework-level changes.

Notes

components/HuntDashboard.tsx has a pre-existing syntax error that prevents a full production build. Confirmed via git stash that this exists before any changes in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optimize Tailwind CSS output

1 participant