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

Vite: Transform <style> blocks in html files #16069

Merged
merged 4 commits into from
Jan 31, 2025

Conversation

philipp-spiess
Copy link
Member

Fixes #16036

This adds a new rule to treat <style> blocks found within .html file as Tailwind CSS targets.

Test plan

  • Tested using the Vite extension (dev) and a new integration test (prod)

@philipp-spiess philipp-spiess requested a review from a team as a code owner January 30, 2025 14:50
@philipp-spiess philipp-spiess force-pushed the fix/vite-html-style-blocks branch from a0d358a to 76903fd Compare January 30, 2025 14:50
@philipp-spiess philipp-spiess force-pushed the fix/vite-html-style-blocks branch from 76903fd to 9405d42 Compare January 30, 2025 14:52
Copy link
Member

@RobinMalfait RobinMalfait left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it, nice!

packages/@tailwindcss-vite/src/index.ts Show resolved Hide resolved
@philipp-spiess philipp-spiess enabled auto-merge (squash) January 31, 2025 14:23
@philipp-spiess philipp-spiess merged commit 9572202 into main Jan 31, 2025
5 checks passed
@philipp-spiess philipp-spiess deleted the fix/vite-html-style-blocks branch January 31, 2025 14:26
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.

Cannot use HTML style tag with Vite to apply a theme
2 participants