This repo demonstrates a bug in tailwindcss v4.0.14 (and some earlier versions) where not all expected Tailwind classes are extracted from a Pug template in a Vue component.
(Tested with pnpm version 10.6.3.)
pnpm install --frozen-lockfilepnpm dev --forcepnpm build && pnpm previewCheck out the first commit in this repo, which has tailwindcss and @tailwindcss/vite at 4.0.9:
git checkout `git rev-list --max-parents=0 HEAD | tail -n 1`Install those older packages:
pnpm install --frozen-lockfileRun the pnpm dev --force and/or pnpm build && pnpm preview commands mentioned above. When viewing the relevant URLs (http://localhost:5173/ and http://localhost:4173/, respectively), you should now see a black background behind the "This is a test." text.