Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable URL rewriting for PostCSS #16965

Merged
merged 8 commits into from
Mar 7, 2025
Merged

Conversation

philipp-spiess
Copy link
Member

@philipp-spiess philipp-spiess commented Mar 5, 2025

Fixes #16636

This PR enables URL rebasing for PostCSS. Furthermore it fixes an issue where transitive imports rebased against the importer CSS file instead of the input CSS file. While fixing this we noticed that this is also broken in Vite right now and that our integration test swallowed that when testing because it did not import any Tailwind CSS code and thus was not considered a Tailwind file.

Test plan

@philipp-spiess philipp-spiess requested a review from a team as a code owner March 5, 2025 16:05
@philipp-spiess philipp-spiess marked this pull request as draft March 5, 2025 16:05
@philipp-spiess philipp-spiess force-pushed the fix/vite-postcss-rebase branch from abaa114 to 89671f0 Compare March 6, 2025 13:31
@philipp-spiess philipp-spiess force-pushed the fix/vite-postcss-rebase branch from 89671f0 to f8ebd54 Compare March 6, 2025 13:39
@philipp-spiess philipp-spiess changed the title WIP Enable URL rewriting for PostCSS Mar 6, 2025
@philipp-spiess philipp-spiess force-pushed the fix/vite-postcss-rebase branch from eef25ae to e989430 Compare March 6, 2025 13:44
@philipp-spiess philipp-spiess marked this pull request as ready for review March 6, 2025 13:49
@philipp-spiess philipp-spiess merged commit 225f323 into main Mar 7, 2025
5 checks passed
@philipp-spiess philipp-spiess deleted the fix/vite-postcss-rebase branch March 7, 2025 11:18
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.

@tailwindcss/postcss fails to resolve font URLs in external packages with Vite
3 participants