Unexpected extra output after upgrading to v4 with Vite plugin #16321
-
I am using TailwindCSS with Vue. I just tried updating to v4 and, as the docs suggest, switched from the PostCSS plugin to the Vite plugin. Now, I see this every time I run Is this the expected behavior now, or did I do something wrong? Either way, how should one get rid of that meaningless extra output? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey @alexchexes. It looks like you see duplicate lines when you run the project because of CSS reprocessing. This can be caused by incorrectly configured caching or conflicts between plugins. Are you sure you removed the PostCSS plugin and they don't conflict? If so, try adding the following code to the vite config for caching: css: {
preprocessorOptions: {
css: {
cache: true
}
}
} |
Beta Was this translation helpful? Give feedback.
-
Well, I just found out that it was a bug: #16307 (someone left a So with the latest |
Beta Was this translation helpful? Give feedback.
Well, I just found out that it was a bug: #16307 (someone left a
console.log
in the@tailwindcss/vite
source code).So with the latest
@tailwindcss/vite
4.0.5 update, the issue is solved. Thanks, everyone, for the help!