Skip to content
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

feat: support polling for watching files #199

Merged
merged 3 commits into from
Sep 5, 2022

Conversation

flavorjones
Copy link
Member

Polling was added upstream in 3.1.0 to solve timing issues with systems that don't fully support file system events (see tailwindlabs/tailwindcss#7725).

This builds on the commits at #198 to support a poll argument to the tailwindcss:watch rake task:

rails tailwindcss:watch[poll]

Because we're using rake task arguments, we can combine poll with the debug argument from #198 like so:

rails tailwindcss:watch[debug,poll]

This PR supersedes #168

- distinguish content with subsection headings
- highlight the rake tasks' attachments, which seem to be confusing for some folks
- lead with installation, then get to the development mode content
Polling was added upstream in 3.1.0.

Suggested by #168
@dhh
Copy link
Member

dhh commented Sep 5, 2022

TIL about using rake task arguments like this! 👍

@flavorjones flavorjones merged commit 251ff22 into main Sep 5, 2022
@flavorjones flavorjones deleted the flavorjones-allow-polling branch September 5, 2022 18:36
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

Successfully merging this pull request may close these issues.

Tailwind requires CSS rebuild after every HTML modification. (bin/dev, hotreload gems, etc., not effective)
2 participants