refactor(vite): ignore docs in dev and preview folders - #186
Conversation
📝 WalkthroughWalkthroughExcludes the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
vite.config.js (1)
47-47: Consider using a more specific ignore pattern.The pattern
'**/docs/**'will ignore anydocsfolder at any depth in the project. Since the docs folder is at the repository root, the pattern'docs/**'would be more specific and sufficient.🔎 Proposed refinement
- ignored: ['**/docs/**', 'src/wasm/**/*.js', 'src/wasm/**/*.wasm'], + ignored: ['docs/**', 'src/wasm/**/*.js', 'src/wasm/**/*.wasm'],
📜 Review details
Configuration used: defaults
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
.gitignorevite.config.js
🔇 Additional comments (1)
.gitignore (1)
15-16: LGTM!The gitignore pattern correctly excludes the generated documentation build artifacts from version control.
…d#186) * refactor(vite): ignore docs in dev and preview folders * refactor(vite): ignore docs in dev and preview folders * fix(.gitignore): don't ignore docs/ files, docs/.gitignore does that --------- Co-authored-by: Ryan-Millard <millardryandevon@gmail.com>
Please choose one of the following:
If none of these fit, you may use this default to describe your change manually.
If this is the right template, go ahead and complete it below 👇
📌 Description
This PR updates the root Vite configuration to fully ignore the docs/ directory during development and preview workflows.
Previously, Vite would watch files under docs/build, causing unnecessary reloads, increased CPU usage, and noisy console output when running the root app.
Changes
Fixes #125
✅ Type of Change
Place an "x" in the brackets below:
🧪 How Has This Been Tested?
Please describe how you tested your changes (e.g., unit tests, manual testing, screenshots, etc.)
🧩 Checklist
Place an "x" in the brackets below:
📸 Screenshots / Demo (if applicable)
Paste images, GIFs, or demo links here.
💬 Additional Context
Anything else relevant to the PR.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.