UNPKG

@ataye/client-server-vite-tailwind

Version:

Boilerplate for an express client-server application using Vite and Tailwind CSS

23 lines (22 loc) 665 B
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({ resolve: { // Preserve symlinks to ensure that the correct node_modules are used // when using monorepos or linked packages within a symlinked environment preserveSymlinks: true }, plugins: [react(), tailwindcss(), flowbiteReact()], envPrefix: 'WEBUI_', server: { proxy: { "/users":{ target: "http://localhost:3000", changeOrigin: true, }, }, } })