Fix Tailwind CSS build compatibility with proper fallback#511
Open
Fix Tailwind CSS build compatibility with proper fallback#511
Conversation
- Add version detection for Tailwind CSS - Fallback to pre-compiled CSS when Tailwind CLI is not available - Update style.css to use Tailwind v4 import syntax - Document Tailwind CSS v4 requirement in developer guide - Ensure CSS is properly bundled into the binary This allows the build to succeed whether or not Tailwind CSS is installed, while still supporting active UI development when it is available.
- Detect tailwindcss availability and version - Gracefully fallback to pre-compiled CSS on any failure - Copy generated CSS to static folder for embedding into binary - Preserve original hashing functionality for future cache-busting The build now succeeds in all scenarios: 1. When tailwindcss is not installed (uses pre-compiled CSS) 2. When tailwindcss v4 fails (uses pre-compiled CSS) 3. When tailwindcss succeeds (generates and embeds new CSS)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes the build process to work with or without Tailwind CSS installed, addressing the v4 compatibility issues.
Changes
Key Points
/ui/static/tailwind.cssTesting
Build Output
This is expected behavior until Tailwind v4 CLI issues are resolved or we update the build commands for v4 compatibility.