| ← Back to README | Documentation Index | Project Structure |
The project has been organized to keep the root directory clean while maintaining functionality and proper tool auto-discovery.
Certain tools expect configuration files to be at the project root for auto-discovery:
PostCSS (postcss.config.js):
postcss.config.js at the root levelTailwind (tailwind.config.ts):
tailwind.config.ts in the root directory/configThese files are moved to /config because they’re explicitly referenced in commands:
--config config/vite.config.ts in npm scripts--config config/vite.config.server.ts in npm scriptsThese must stay at root for proper tool integration:
{
"dev": "vite --config config/vite.config.ts",
"build:client": "vite build --config config/vite.config.ts",
"build:server": "vite build --config config/vite.config.server.ts"
}
By explicitly specifying the config file path, we can keep Vite configs organized in /config while allowing PostCSS and Tailwind to remain at the root where they’re auto-discovered.
tailwind.config.tspostcss.config.jscomponents.jsonnetlify.tomlpackage.jsonpnpm-lock.yamltsconfig.jsonindex.html.env, .gitignore, .npmrc, .prettierrc, etc./config Directoryvite.config.tsvite.config.server.tsRoot directory is significantly cleaner with core build configs organized in /config while maintaining full functionality.
/config, tools that auto-discover at root--config flag makes dependencies clearIf the project grows and more Vite plugins are added:
/config/config/vite/)--config paths in npm scriptsIf Tailwind CSS styles aren’t loading:
tailwind.config.ts is in the root directorypostcss.config.js is in the root directorycontent path in tailwind.config.ts correctly points to client files: ["./client/**/*.{ts,tsx}"]pnpm devIf Shadcn/ui components can’t be added:
components.json is in the root directorycomponents.json point to correct locations