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 support for polling when watching file changes #184

Merged
merged 2 commits into from
May 22, 2023
Merged

Conversation

hgwood
Copy link
Member

@hgwood hgwood commented Jan 26, 2023

This can help get hot reloading work when running sensei with a VM-backed Docker from a host file system folder. For example, when running sensei with Docker for Windows with the WSL2 back-end from a Windows file system folder (see #117) or when running sensei with Colima from a macOS file system folder (see lima-vm/lima#615). The recommendation still is to work off the VM file system to get native file watching.

See #117. Setting SENSEI_WATCH_POLL to 'true' now makes webpack poll to watch source files, making it possible to live reload on WSL2. Could be useful in other situations also.
@hgwood hgwood self-assigned this Jan 26, 2023
@hgwood hgwood merged commit 995e891 into main May 22, 2023
@hgwood hgwood deleted the new_watch_poll branch May 22, 2023 13:54
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.

1 participant