Skip to content

Add support for "--watch-poll" webpack-dev-server flag to ng serve #2991

@ghost

Description

Please provide us with the following information:

OS?

Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Ubuntu Trusty Tahr (14.04) [LTS] 64 vagrant guest OS on Windows 10 host.

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:
angular-cli: 1.0.0-beta.19-3
node: 6.4.0
os: linux x64

The file change detection isn't working with ng serve in vagrant on a Windows host. I've had the same issue using Browsersync and fixed it using "usePolling" in "watchOptions".
There is a similar configuration option in webpack.config.js but you can't edit that in angular-cli, so how about adding support for the "--watch-poll" flag to ng serve instead?

According to these comments "--watch-poll" should fix the issue:
webpack/webpack-dev-server#155 (comment)
webpack/webpack-dev-server#324 (comment)
http://stackoverflow.com/a/34937378

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions