feat(dashboard): Add additionalStylesheets option to vendureDashboa…#4765
feat(dashboard): Add additionalStylesheets option to vendureDashboa…#4765tbouliere-datasolution wants to merge 1 commit into
additionalStylesheets option to vendureDashboa…#4765Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis PR adds a new Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Description
Adds an
additionalStylesheetsoption tovendureDashboardPluginso that projects embedding the dashboard can inject their own CSS file(s) into the dashboard's main stylesheet declaratively, instead of having to hand-roll a custom Vitetransformplugin that splices an@importintoapp/styles.css.Each provided path is injected as an
@importstatement right after@import 'tailwindcss';. This is the conventional spot for user CSS in a Tailwind v4 setup — it keeps the CSS valid (imports must precede rules) and lets the file participate in Tailwind's build pipeline, so projects can use@source,@theme,@apply,@utility, custom variants, etc. inside it.The option accepts either a single string or an array. Paths may be absolute or relative to
process.cwd(); backslashes are normalized to forward slashes so the generated@importis valid on Windows. Duplicate imports are deduped, so the transform is idempotent.Breaking changes
None. additionalStylesheets is fully optional and defaults to undefined,
so projects that don't set it behave exactly as before.
Need help on this PR? Tag
@codesmithwith what you need. Autofix is disabled.