.gitignore for Nuxt
9 ignore rules for Nuxt, ready to copy into your repository.
Full-stack Vue framework
The complete .gitignore for Nuxt
# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-09-17 17:00:56 UTC
# Technologies: Nuxt
### Nuxt ###
# Nitro/Nuxt production build output
.output
.data
# Nuxt.js build output
.nuxt
# Nitro server build cache
.nitro
# Cache directory
.cache
dist
# Environment variables
.env
.env.*
!.env.example
What these Nuxt rules actually ignore
Every pattern below, and why it belongs in your .gitignore.
Nuxt dev and build outputs
| Pattern | What it ignores |
|---|---|
.output |
Nitro/Nuxt production build output |
.data |
Nuxt dev and build outputs |
.nuxt |
Nuxt.js build output |
.nitro |
Nitro server build cache |
.cache |
Cache directory |
dist |
Nuxt dev and build outputs |
Local env files
| Pattern | What it ignores |
|---|---|
.env |
Environment variables |
.env.* |
Local env files |
!.env.example |
Local env files |
How to use this .gitignore for Nuxt
- Copy the Nuxt rules above, or download the file directly.
- Create a file named .gitignore at the root of your Git repository and paste the rules into it.
- If some of those files are already tracked, run git rm -r --cached . then commit again — Git only applies ignore rules to untracked files.
- Commit the .gitignore so everyone on the team shares the same rules.