Skip to content

Can @tailwindcss/vite scan step seems to miss classes in waku #16585

@tylersayshi

Description

@tylersayshi

We're seeing not all classes be picked up by the tailwind vite plugin right now. I've attached a reproduction (thanks to one of our waku users on discord). The issue in this case is that bg-blue-400 does not make it into the tailwind style output. I am able to see the className in the html output so it does seem like a bug with the plugin for now to me.

repro: https://github.com/tylersayshi/waku-vite-tailwind-bug

From this code it seems like this should auto-read from the html output, but it does seem to miss this case for now.

https://github.com/tailwindlabs/tailwindcss/blob/main/packages/%40tailwindcss-vite/src/index.ts#L187-L214

I'm happy to help however I can here :)

Update: I pushed a working example with postcss here: https://github.com/tylersayshi/waku-vite-tailwind-bug/tree/postcss

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions