Tailwind config: merge content globs across adapter layers #7

Open
opened 2026-05-04 15:42:18 +02:00 by libretech · 0 comments
Owner

Part of #2

Problem

tailwind.config.ts content globs only point at libreshop/shop's own paths. When an adapter layer ships its own components/pages with Tailwind classes, those classes are purged from the production CSS unless explicitly added.

Acceptance

  • libreshop/shop's tailwind.config.ts exports a factory that accepts additional content paths
  • Adapter Nuxt layer can extend tailwind config with its own paths
  • Document pattern in README
  • Verify: build adapter layer with Tailwind class only used in adapter — class survives purge in final CSS
Part of https://git.librete.ch/libreshop/shop/issues/2 ## Problem `tailwind.config.ts` content globs only point at libreshop/shop's own paths. When an adapter layer ships its own components/pages with Tailwind classes, those classes are purged from the production CSS unless explicitly added. ## Acceptance - [ ] libreshop/shop's `tailwind.config.ts` exports a **factory** that accepts additional content paths - [ ] Adapter Nuxt layer can extend tailwind config with its own paths - [ ] Document pattern in README - [ ] Verify: build adapter layer with Tailwind class only used in adapter — class survives purge in final CSS
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: libreshop/shop#7
No description provided.