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
This does not work when @tailwindcss/vite is used. (It works when @tailwind/postcss is used with Vite)
If you comment out plugins: [tailwind()], from vite.config.ts in the reproduction, you can see the background image shown, which is the expected behavior.
The text was updated successfully, but these errors were encountered:
What version of Tailwind CSS are you using?
4.0.1
What build tool (or framework if it abstracts the build tool) are you using?
Vite 6.0.11 with @tailwindcss/vite 4.0.1
For example: postcss-cli 8.3.1, Next.js 10.0.9, webpack 5.28.0
What version of Node.js are you using?
22.13.0
What browser are you using?
Chrome
What operating system are you using?
Windows
Reproduction URL
https://stackblitz.com/edit/vitejs-vite-twabw18q?file=vite.config.ts,src%2Fstyles%2Fstyle.css&terminal=dev
npm i
npm run dev
http://localhost:5173
Describe your issue
In Vite, I can use alias set with
resolve.alias
inurl()
. For example:This does not work when
@tailwindcss/vite
is used. (It works when@tailwind/postcss
is used with Vite)If you comment out

plugins: [tailwind()],
fromvite.config.ts
in the reproduction, you can see the background image shown, which is the expected behavior.The text was updated successfully, but these errors were encountered: