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
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 30s
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user