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

Add an explicit --poll option to the CLI #7725

Merged
merged 3 commits into from Mar 2, 2022
Merged

Conversation

thecrypticace
Copy link
Contributor

We currently enable awaitWriteFinish on Windows because a file may be created, an event delivered for that, and then written to and these events are not necessarily coalesced. This may also be necessary to do over network connections — for example when using SSH. Additionally, watchFile-based polling in chokidar is recommended when watching files over a network connection. If polling is not used rebuilds may happen too early or even not at all when working over a network.

I've added an explicit flag (--poll) that lets user's enable polling behavior in case they're operating over a network or otherwise have latency issues on when a file is created / written to / done writing.

Fixes #7467

@thecrypticace thecrypticace force-pushed the feature/cli-polling branch 2 times, most recently from 809cd3b to 0a6f145 Compare March 2, 2022 15:47
@thecrypticace
Copy link
Contributor Author

wat the vite integration test failed. Seems like a spurious failure. 👀

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 --watch randomly does not update the output CSS (Likely only when saving through SSH)
2 participants