mattdesl / budo

:clapper: a dev server for rapid prototyping
MIT License
2.17k stars 106 forks source link

How do I pass options to watchify(-middleware)? #247

Open m90 opened 4 years ago

m90 commented 4 years ago

We're using budo inside a Docker container. Source code is mounted into this container using a bind mount. On Linux, budo picks up changes just fine and recreates the bundle(s) on change.

On Windows, we'd like to fall back to polling, but somehow can't get it to work.

From what I understand passing --poll to budo itself will only affect HTML and CSS changes as the JS is handled by watchify-middleware. watchify has a poll option (which I hope would resolve our issue), but I have a hard time figuring out how to pass these to the underlying watchify instance. I also tried passing poll to browserify (like -- --poll), but it didn't make a difference either.

Is there any way of enabling watchify to use poll?