dockerwebpackgulpgulp-watch

Gulp Webpack not watching file in docker


I have a project node using docker. my project is built using gulp. when in local (not docker), watching for file change is working, but not in docker. how to solve this?

As additional information, I mount all files from local(windows) to docker.


Solution

  • I will answer my own question..

    If you're experiencing the same thing as me, you can use a poll to have all files rechecked every few seconds (you decide)

    below is the documentation

    https://webpack.js.org/configuration/watch/#watchoptionspoll