How to use tailwindcss/vite with vite 8 #19624
-
|
How to use tailwindcss/vite with vite 8 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
From v4.2.2 onwardOn March 12, 2026, Vite 8 was officially released. From v4.2.2 released on March 18, 2026, official support for Vite 8 has been introduced, among other improvements, so you only need to start with v4.2.2. package.json {
"dependencies": {
"vite": "^8",
"tailwindcss": "^4.2.2",
"@tailwindcss/vite": "^4.2.2"
},
}vite.config.ts import { defineConfig } from 'vite'
import tailwindcss from '@tailwindcss/vite'
export default defineConfig({
plugins: [
tailwindcss(),
],
})v4.2.1 or earlier versionsVite 8 with
|
Beta Was this translation helpful? Give feedback.
-
|
its stable now. How to use ? |
Beta Was this translation helpful? Give feedback.
-
|
Is there a close replacement to this
…On Sat, Mar 14, 2026, 5:32 AM Justin Wong ***@***.***> wrote:
A stable @tailwindcss/vite version that supports Vite 8 isn't out yet,
but you can try the insiders tag:
npm install ***@***.*** @***@***.***
—
Reply to this email directly, view it on GitHub
<#19624 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/B7HZNK52ZLM5BAXDV5X462T4QUYKTAVCNFSM6AAAAACTN6DZJKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTMMJSHEZDGMA>
.
You are receiving this because you are subscribed to this thread.Message
ID: <tailwindlabs/tailwindcss/repo-discussions/19624/comments/16129230@
github.com>
|
Beta Was this translation helpful? Give feedback.
From v4.2.2 onward
On March 12, 2026, Vite 8 was officially released.
From v4.2.2 released on March 18, 2026, official support for Vite 8 has been introduced, among other improvements, so you only need to start with v4.2.2.
package.json
{ "dependencies": { "vite": "^8", "tailwindcss": "^4.2.2", "@tailwindcss/vite": "^4.2.2" }, }vite.config.ts
v4.2.1 or earlier versions
Vite 8 with
@tailwindcss/viteI ha…