Skip to content

tailwind watch mode not refreshing files in assets folder #17632

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kuon opened this issue Apr 10, 2025 · 7 comments
Open

tailwind watch mode not refreshing files in assets folder #17632

kuon opened this issue Apr 10, 2025 · 7 comments

Comments

@kuon
Copy link

kuon commented Apr 10, 2025

What version of Tailwind CSS are you using?

v4.1.3

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

tailwind cli

What version of Node.js are you using?

v23.4.0

What browser are you using?

firefox

What operating system are you using?

linux

Reproduction URL

https://github.com/kuon/bug-tailwind

Describe your issue

The watch does not work for files located in the "assets" folder.

I think this is the same issue.

@kuon kuon changed the title tailwind watch mode not refreshing css with source(none) tailwind watch mode not refreshing files in assets folder Apr 10, 2025
@philipp-spiess
Copy link
Member

@kuon Hey! Can you clarify what the issue is that you're seeing? I've been running your repro and it seems like whenever I do make touch, the cli does seem to pick up the change? Is this specific to Linux?

Screen.Recording.2025-04-11.at.13.46.17.mov

@kuon
Copy link
Author

kuon commented Apr 11, 2025 via email

@kuon
Copy link
Author

kuon commented Apr 11, 2025

It seems the reproduction is not 100% of the time. I am trying to find the conditions and I will give you an update.

@kuon
Copy link
Author

kuon commented Apr 11, 2025

I updated the repo with some path modifications and now it does it 100% for me.

@wongjn
Copy link
Contributor

wongjn commented Apr 11, 2025

Seems like it could be related to source(none)? Removing it and rerruning make causes make touch to cause rebuilds. Adding source(none) back in then stops make touch from causing rebuilds.

@kuon
Copy link
Author

kuon commented Apr 11, 2025

Yes, but it should at least watch itself (the css file) even with source(none). Also the weird thing is that it is dependent on the folders it is located. As you saw the first time, it had source(none) and was working.

So I think there is some subtle bug somewhere.

@wongjn
Copy link
Contributor

wongjn commented Apr 11, 2025

Yep! A bug somewhere 🐛 To be clear, I wasn't suggesting that it wasn't a bug. I was merely writing my findings in case it helps identify the root cause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants