Skip to content

npx watch is case sensitve #16784

Open

Description

@Siphonophora

Version 4.0.7

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

CLI only npx tailwindcss

What version of Node.js are you using?

v16.20.2

What browser are you using?

Chrome

What operating system are you using?

Windows

Reproduction URL
https://github.com/Siphonophora/tailwind-watch-case-sensitive-repo

Describe your issue

When running the --watch command, it does not rebuild when the input file string has casing that is different than the actual casing. So, case insensitivity of windows paths is being only partially honored. Feels like it would be fine if this generated an error, but it appearing to build but failing was pretty confusing.

  • This has paths with the correct casing. Works as expected npx tailwindcss -i ./styles/site.css -o ./build/output.css --watch
  • When there are casing issues, including the examples below, the output is generated once. File changes still lead to Done in ##ms messages, even when the input with the casing issue is what changed. However, output never changes after the initial run.
    • npx tailwindcss -i ./Styles/site.css -o ./build/output.css --watch
    • npx tailwindcss -i ./styles/Site.css -o ./build/output.css --watch
  • Casing issue on the output file path doesn't cause a problem
    • npx tailwindcss -i ./styles/site.css -o ./Build/output.css --watch

Activity

  1. aakash-env commented on Jun 3, 2025

    @aakash-env

    @Siphonophora kindly assign this issue to me.

  2. Siphonophora commented on Jun 27, 2025

    @Siphonophora
    Author

    @aakashsharma7 I don't think I have the rights to do that in this project

  3. aakash-env commented on Jul 12, 2025

    @aakash-env

    @Siphonophora so who have right for this?

  4. added a commit that references this issue on Mar 10, 2026
    8021b80
  5. mvanhorn commented on Mar 10, 2026

    @mvanhorn
    Contributor

    I've submitted a fix for this in PR #19774. Adds case-insensitive path comparison on Windows for the watch mode rebuild triggers.

  6. khalidsaidi commented on Mar 25, 2026

    @khalidsaidi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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