Skip to content

Conversation

navan0
Copy link
Contributor

@navan0 navan0 commented Jul 27, 2025

Add Vite-specific entries to Node.gitignore

Reasons for making this change

Vite is a popular frontend build tool frequently used with frameworks like Vue, React, and Svelte. While many of its common patterns are already covered in the Node.gitignore file (such as dist/, .cache, .env.*), a few Vite-specific entries are not yet included.

This change adds:

  • .vite/ — the directory used by Vite for development cache
  • .env*.local — common in Vite projects for local environment overrides

This follows feedback from @wirecat on PR #4680, recommending that Vite-related rules be integrated into Node.gitignore instead of creating a new Vite-specific template.

Links to documentation supporting these rule changes

If this is a new template

Not applicable. This is an update to an existing template.

Merge and Approval Steps

  • Confirm that you've read the contribution guidelines and ensured your PR aligns
  • Ensure CI is passing
  • Get a review and approval from one of the maintainers

Add Vite-specific entries to Node.gitignore
@navan0 navan0 requested a review from a team as a code owner July 27, 2025 13:12
@navan0
Copy link
Contributor Author

navan0 commented Aug 22, 2025

@wirecat please have a look

@navan0
Copy link
Contributor Author

navan0 commented Aug 31, 2025

Thanks @dooleydevin I removed .env*.local since it’s already covered by .env.*, and I merged .vite/ under the Vite section with the log files. Let me know if this looks good.

@navan0 navan0 requested a review from dooleydevin August 31, 2025 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants