Can't find vite.config.js file after installing Tailwind CSS with Vite #17757
-
|
I installed Tailwind CSS with:
But I can’t find Do I need to create the config file manually? If yes, what should I add for Tailwind to work? Thanks in advance for any help! 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Yes.
As per the documentation: import { defineConfig } from 'vite'
import tailwindcss from '@tailwindcss/vite'
export default defineConfig({
plugins: [
tailwindcss(),
],
})Be sure to follow the other steps in the aforementioned documentation to get Tailwind working. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you. |
Beta Was this translation helpful? Give feedback.

You'd want to add a
devscript to yourpackage.json:{ "scripts": { "dev": "vite" } }See scripts documentation for details.