build --watch
on WSL not detecting changes even with usePolling
#18381
Labels
p3-minor-bug
An edge case that only affects very specific usage (priority)
Describe the bug
I am trying to use
vite build --watch
in a Docker container on a Windows host. WSL does not support filesystem events, but the Vite guide mentions using theusePolling
option as a workaround. However it does not work forvite --build
- it does not pick up updates. TheusePolling
flag only seems to work for the vite server.Reproduction
See repoduction steps
Steps to reproduce
Package.json:
vite.config.mjs:
docker-compose.yml:
index.html:
Start the container. Edit the
index.html
file. Observe that neither the output of the container mentions rebuilding nor doesdist/index.html
change in response to the edits.System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: