Skip to content

--watch-poll not working on Docker under Windows 10 #4594

@raphaklaus

Description

@raphaklaus

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
Since Windows can't use inotify to send changes from the host to the guest, I use polling technique.

Using this configuration in webpack.config.js

  watch: true,
    watchOptions: {
      poll: 1000
  }

the polling works normally. But if I use this same configuration in the command line, like:

webpack --watch --watch-poll 100 or just webpack --watch --watch-poll

It doesn't rebuild after file change.

If the current behavior is a bug, please provide the steps to reproduce.
Create a node application using webpack to bundle everything.

What is the expected behavior?

Expect webpack rebuild with the new files.

Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
Webpack: 1.14
Docker: 17.03.1-ce
Windows 10 using Hyper-V.
Node: 6.9.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions