Skip to content

In the Vite environment, some categories cannot be hot reloaded and the service must be restarted. #19099

@sdf09

Description

@sdf09

What version of Tailwind CSS are you using?

For example: v4.1.14

What build tool (or framework if it abstracts the build tool) are you using?

vite:7.1.9,
tailwindcss:4.1.14,
@tailwindcss/vite:4.1.14

What version of Node.js are you using?

Version: v20.12.0

What browser are you using?

Browser: Chrome

What operating system are you using?

Operating system:Windows

Reproduction URL

Describe your issue

When I use Tailwind CSS in Vite, I find that some classes don't work properly, such as w-2/10, z-4, or h-2/5. I have to restart my service before these classes take effect.

Image Image Image Image Image

When I'm using it, I must restart the service

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions