Adds out of the box support for TailwindCSS v3 with following PostCSS plugins:
For TailwindCSS v4+ use the official plugin.
import tailwindcss from '@vituum/vite-plugin-tailwindcss'
export default {
plugins: [
tailwindcss()
]
}- Don't forget to also add your
tailwind.config.js, learn more here. - If you want to add more PostCSS plugins, add them via css.postcss.plugins.
- If you want to use
postcss.config.cjsaddcss.postcss: process.cwd(), PostCSS config and it's plugins will be used instead
Read the docs to learn more about plugin options