-
Notifications
You must be signed in to change notification settings - Fork 185
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
Ignore paths to watch like node_modules #512
Comments
Awesome. It doesn't appear impossible. I'll try to do some debugging. There is a update: If don't run with Foreman, can see the error.
|
@tom-spalding Hi, depending on whether you're running tailwind v3 or v4, the
and the v4 version has its own heuristics on what it chooses to pay attention to, please take a look at the docs at https://tailwindcss.com/docs/detecting-classes-in-source-files What this all adds up to is, there's no good way to tell tailwind what not to watch. There was a related conversation on this topic in #491 and the brief summary is, the I'm going to close this, since I don't believe there is anything this gem can easily to do change this behavior, but I'm happy to continue the conversation if you have questions. |
Side note: I've updated the README for tailwindcss-ruby to have the v4 help output. |
Thanks @flavorjones, that's very helpful and makes sense. |
Hi is it possible to pass an ignore path param to the
tailwindcss
CLI? Long story short; I think it would be nice to ignore allnode_modules
directories.More context:
The following is in my
Procfile.dev
,css: bin/rails tailwindcss:watch
. My usecase is to avoid watching files in a large submodule. I have the commoninotify_add_watch
issue. Instead of bumping up my watchers every day like soI think it would be nice to ignore all
node_modules
. Even without the large submodule issue, this seems like a common usecase I hope.Thanks for the great project! - Tom
The text was updated successfully, but these errors were encountered: