move to using /src - still css issue work
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 30s

This commit is contained in:
2025-11-12 15:34:42 -08:00
parent 41e3a14925
commit 97c2d6db46
5 changed files with 3 additions and 14 deletions

View File

@@ -3,21 +3,19 @@ import path from 'path';
import { defineConfig as defineViteConfig } from 'vite';
import { defineConfig as defineVitestConfig } from 'vitest/config';
import react from '@vitejs/plugin-react';
// 1. Import the Tailwind v4 PostCSS plugin directly
import tailwindcssPostcss from '@tailwindcss/postcss';
const __dirname = path.dirname(new URL(import.meta.url).pathname);
const vitestConfig = defineVitestConfig({
test: {
environment: 'jsdom',
setupFiles: ['./src/vitest.setup.ts'], // Correct path after src migration
setupFiles: ['./src/vitest.setup.ts'],
},
});
const viteConfig = defineViteConfig({
plugins: [react()],
// 2. Define the PostCSS plugins in the Array format Vite expects
css: {
postcss: {
plugins: [
@@ -25,7 +23,6 @@ const viteConfig = defineViteConfig({
],
},
},
server: {
port: 3000,
host: '0.0.0.0',