@ataye/client-server-vite-tailwind
Version:
Boilerplate for an express client-server application using Vite and Tailwind CSS
18 lines (17 loc) • 463 B
JavaScript
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
import flowbiteReact from "flowbite-react/plugin/vite";
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), tailwindcss(), flowbiteReact()],
envPrefix: 'WEBUI_',
server: {
proxy: {
"/users":{
target: "http://localhost:3000",
changeOrigin: true,
},
},
}
})