feat(vite): add root option to override .nuxt-ui directory location#6595
feat(vite): add root option to override .nuxt-ui directory location#6595benjamincanac wants to merge 1 commit into
root option to override .nuxt-ui directory location#6595Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughA new optional Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install timed out. The project may have too many dependencies for the sandbox. 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 |
commit: |
Description
Adds a
rootoption to the@nuxt/ui/viteplugin to override the directory where the.nuxt-uidirectory (generated theme templates) is created.By default the plugin uses Vite's
config.root. In setups likeelectron-vitethe renderer'srootpoints to a sub-directory (e.g.src/renderer), so the templates land insrc/renderer/node_modules/.nuxt-uiwhere Tailwind doesn't scan them, causing theme classes likebg-default,ring-defaultanddivide-defaultto be missing.Closes #6589