diff --git a/tailwind.config.js b/tailwind.config.js index bd2c4481..eafb746d 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,33 +1,2 @@ -import { sync } from 'glob'; - -console.log('--- [TAILWIND CONFIG DEBUG] ---'); - -// 1. Log the Current Working Directory of this process -const cwd = process.cwd(); -console.log(`[TAILWIND] Current Working Directory: ${cwd}`); - -// 2. Define the glob patterns we want to test -const contentPatterns = [ - './index.html', - './src/**/*.{js,ts,jsx,tsx}' -]; -console.log(`[TAILWIND] Defined content patterns:`, contentPatterns); - -// 3. Manually execute the glob search and log the results -try { - const foundFiles = sync(contentPatterns, { cwd: cwd, absolute: true }); - console.log(`[TAILWIND] Glob sync found ${foundFiles.length} files:`); - // Log only the first few files to avoid flooding the log - console.log(foundFiles.slice(0, 10)); -} catch (e) { - console.error('[TAILWIND] Glob sync failed!', e); -} -console.log('--- [TAILWIND CONFIG DEBUG END] ---'); - - -/** @type {import('tailwindcss').Config} */ -const config = { - content: contentPatterns, -}; - -export default config; \ No newline at end of file +// tailwind.config.js +throw new Error('--- THIS IS THE TAILWIND CONFIG ERROR TEST. IF YOU SEE THIS, THE FILE IS BEING READ. ---'); \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index 2e6e013d..16c99246 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,6 +4,23 @@ 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);