Files
mkstack/vite.config.ts
T
Alex Gleason f0a92e5475 Upgrade to Tailwind CSS v4
Migrate from v3's JS config + PostCSS to v4's CSS-first setup using the @tailwindcss/vite plugin. Theme tokens move into @theme inline in src/index.css, tailwindcss-animate is replaced by tw-animate-css, and the container utility is redeclared via @utility. A compatibility layer preserves v3's default border color so existing shadcn/ui components render unchanged. Also exclude .agents/** (and other non-source dirs) from the Vitest run.
2026-04-26 20:51:29 -05:00

39 lines
840 B
TypeScript

import path from "node:path";
import react from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "vitest/config";
// https://vitejs.dev/config/
export default defineConfig(() => ({
server: {
host: "::",
port: 8080,
},
plugins: [
react(),
tailwindcss(),
],
test: {
globals: true,
environment: 'jsdom',
setupFiles: './src/test/setup.ts',
exclude: [
'**/node_modules/**',
'**/dist/**',
'**/{vite,eslint}.config.*',
'.agents/**',
],
onConsoleLog(log) {
return !log.includes("React Router Future Flag Warning");
},
env: {
DEBUG_PRINT_LIMIT: '0', // Suppress DOM output that exceeds AI context windows
},
},
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
}));