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

This commit is contained in:
2025-11-12 16:29:51 -08:00
parent 0e93e27a49
commit 827ceee0e1
3 changed files with 27 additions and 28 deletions

9
postcss.config.js Normal file
View File

@@ -0,0 +1,9 @@
// postcss.config.js
console.log('--- [EXECUTION PROOF] postcss.config.js is being loaded. ---');
export default {
plugins: {
'@tailwindcss/postcss': {},
},
};

View File

@@ -1,2 +1,11 @@
// tailwind.config.js
throw new Error('--- THIS IS THE TAILWIND CONFIG ERROR TEST. IF YOU SEE THIS, THE FILE IS BEING READ. ---');
console.log('--- [EXECUTION PROOF] tailwind.config.js is being loaded. ---');
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
};

View File

@@ -1,28 +1,12 @@
// vite.config.ts
/// <reference types="vitest" />
import path from 'path';
import { defineConfig as defineViteConfig } from 'vite';
import { defineConfig as defineVitestConfig } from 'vitest/config';
import react from '@vitejs/plugin-react';
import tailwindcssPostcss from '@tailwindcss/postcss';
import { sync } from 'glob'; // Import the glob sync function
// --- VITE CONFIG DEBUGGING ---
console.log('--- [VITE CONFIG DEBUG] ---');
const cwd = process.cwd();
console.log(`[VITE] Current Working Directory: ${cwd}`);
const contentPatterns = ['./index.html', './src/**/*.{js,ts,jsx,tsx}'];
try {
const foundFiles = sync(contentPatterns, { cwd, absolute: true });
console.log(`[VITE] Glob sync found ${foundFiles.length} files from CWD:`);
console.log(foundFiles.slice(0, 15)); // Log the first 15 found files
} catch (e) {
console.error('[VITE] Glob sync failed!', e);
}
console.log('--- [VITE CONFIG DEBUG END] ---');
// --- END VITE CONFIG DEBUGGING ---
const __dirname = path.dirname(new URL(import.meta.url).pathname);
console.log('--- [EXECUTION PROOF] vite.config.ts is being loaded. ---');
const vitestConfig = defineVitestConfig({
test: {
@@ -33,20 +17,17 @@ const vitestConfig = defineVitestConfig({
const viteConfig = defineViteConfig({
plugins: [react()],
css: {
postcss: {
plugins: [
tailwindcssPostcss,
],
},
},
// THE 'css' BLOCK IS REMOVED to allow for standard auto-discovery.
// We will now rely on vite build --debug to prove it finds postcss.config.js.
server: {
port: 3000,
host: '0.0.0.0',
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
'@': path.resolve(process.cwd(), './src'),
}
},
});