Skip to content

HMR for NextJS failed on windi.config.js change #91

Open
@donrsh

Description

Describe the bug
As title. It seems windi.config.js change doesn't cause HMR on a next.js project.

To Reproduce
Steps to reproduce the behavior:

  1. Clone repository: https://github.com/donrsh/issue-NextJS-HMR-on-windi-config-change
  2. Run yarn dev
  3. Visit http://localhost:3000
  4. Modify extend color in windi.config.js (e.g. red: "#f00" -> red: "#0f0")

Expected behavior
Observe that the title that consumes text-red (pages/index.js - line15) class didn't change color. Even reload doesn't trigger the update. One needs to rerun the dev server for the change to apply.

Screenshots
The color of highlighted texts should change.
image

Additional context
I work on Windows.

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