React build outputs to ignore
Avoid committing cache, build and coverage folders from CRA/Vite.
Explore resourceProfessional .gitignore tools
React applications with modern tooling
Using GitIgnore.pro fallback template because the official template was unavailable during generation.
# React .gitignore template
# Generated by GitIgnore.pro
# Logs
*.log
logs/
# Dependencies
node_modules/
vendor/
# Build outputs
build/
dist/
out/
# Cache
.cache/
*.tmp
# Environment variables
.env
.env.local
# IDE
.vscode/
.idea/
*.swp
*.swo
# OS
.DS_Store
Thumbs.db.gitignore in your project rootAvoid committing cache, build and coverage folders from CRA/Vite.
Explore resourceIgnore .next build output, env files and storybook artifacts safely.
Explore resourceUse the diff tool to compare your local ignore file against best practice.
Explore resourceDownload the curated React template and automate clean deployments.