From 9feb1a6dc5eb2f5ddaa26d5122f4fc9996379c0b Mon Sep 17 00:00:00 2001 From: Hemanta Bhandari Date: Wed, 3 Jul 2024 21:11:54 +0545 Subject: [PATCH] Fix tailwind issue Add `plugins: [tailwindcss()]` --- nepalingo-web/vite.config.ts | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/nepalingo-web/vite.config.ts b/nepalingo-web/vite.config.ts index 790a89f..60c4941 100644 --- a/nepalingo-web/vite.config.ts +++ b/nepalingo-web/vite.config.ts @@ -1,16 +1,19 @@ -import { defineConfig } from 'vite'; -import react from '@vitejs/plugin-react'; -import tsconfigPaths from 'vite-tsconfig-paths'; -import { resolve } from 'path'; +import { defineConfig } from "vite"; +import react from "@vitejs/plugin-react"; +import tsconfigPaths from "vite-tsconfig-paths"; +import { resolve } from "path"; +import tailwindcss from "tailwindcss"; export default defineConfig({ - plugins: [ - react(), - tsconfigPaths() - ], + plugins: [react(), tsconfigPaths()], + css: { + postcss: { + plugins: [tailwindcss()], + }, + }, resolve: { alias: { - '@': resolve(__dirname, 'src'), + "@": resolve(__dirname, "src"), }, }, });