[GH-ISSUE #11134] Issue 1: Missing purge option in tailwind.config.js for production optimization. #7343

Open
opened 2026-04-12 19:23:35 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @PrinceSajjadHussain on GitHub (Jun 19, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/11134

The tailwind.config.js file is missing the purge option (now content in Tailwind CSS v3). While content is specified, failing to configure it correctly, especially for production builds, can lead to significantly larger CSS bundle sizes as unused styles are not removed. It's important to ensure only the CSS classes used in your project are included in the final CSS file to optimize performance and reduce load times. While the code has the content array defined, this comment is to highlight the importance of setting it properly based on your project structure to ensure proper tree shaking in production builds.

Originally created by @PrinceSajjadHussain on GitHub (Jun 19, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/11134 The `tailwind.config.js` file is missing the `purge` option (now `content` in Tailwind CSS v3). While `content` is specified, failing to configure it correctly, especially for production builds, can lead to significantly larger CSS bundle sizes as unused styles are not removed. It's important to ensure only the CSS classes used in your project are included in the final CSS file to optimize performance and reduce load times. While the code has the content array defined, this comment is to highlight the importance of setting it properly based on your project structure to ensure proper tree shaking in production builds.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#7343