You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While this is easily fixable by adding @source "app.html"; to your css file where tailwind is being loaded (in this case, src/app.css), I feel like tailwind should automatically include it when building like it does in the dev server.
Hey! We have just landed some changes to the Vite plugin that I validated against your repro and it also fixes your issues. The changes will be out in the next patch release (hopefully today). Thanks for the bug report!
What version of Tailwind CSS are you using?
For example: v4.0.7
What build tool (or framework if it abstracts the build tool) are you using?
SvelteKit 2.17.2
What version of Node.js are you using?
v22.14.0
What browser are you using?
Chrome
What operating system are you using?
macOS
Reproduction URL
https://github.com/DarthGigi/tailwind-v4-app-html-mvce
Describe your issue
When building, Tailwind CSS v4 does not detect SvelteKit's
src/app.html
file:app.html
Dev server
After build
While this is easily fixable by adding
@source "app.html";
to your css file where tailwind is being loaded (in this case,src/app.css
), I feel like tailwind should automatically include it when building like it does in the dev server.I've also made a minimal repro: https://github.com/DarthGigi/tailwind-v4-app-html-mvce
Originally posted by @DarthGigi in #16339 (comment)
The text was updated successfully, but these errors were encountered: