Webpack watching and vagrant

Webpack --watch doesn't work with vagrant syncing because inotify doesn't work with networked filesytems.

The solution is to to set poll:true in your webpack watch options:

    ...
    watch: true,
    watchOptions: {
        poll: true
    },
    ...

To reduce the polling frequency set poll: xxx where xxx is number of milliseconds:

        ...
    watch: true,
    watchOptions: {
        poll: 500
    },
    ...