Skip to content

When I modify a source file, Vite always reloads the page instead of using HMR. #16764

Open
@wcshds

Description

@wcshds
QQ2025222-15517.mp4

What version of Tailwind CSS are you using?

v4.0.8

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

Vite 6.1.1

What version of Node.js are you using?

v22.14.0

What browser are you using?

Chrome and Firefox

What operating system are you using?

WSL

Reproduction URL

https://github.com/wcshds/nuxt-tailwind-source-reload-everytime

Describe your issue

I tried to use tailwind v4 in my Nuxt project. I use @source to explicitly register source path, but when I modify a source file, Vite always reloads the page instead of only using HMR.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions