{"action":"closed","issue":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/379","repository_url":"https://api.github.com/repos/webpack/webpack-dev-server","labels_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/379/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/379/comments","events_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/379/events","html_url":"https://github.com/webpack/webpack-dev-server/issues/379","id":127535967,"number":379,"title":"Watch works exactly once without polling","user":{"login":"mnpenner","id":1112998,"avatar_url":"https://avatars.githubusercontent.com/u/1112998?v=3","gravatar_id":"","url":"https://api.github.com/users/mnpenner","html_url":"https://github.com/mnpenner","followers_url":"https://api.github.com/users/mnpenner/followers","following_url":"https://api.github.com/users/mnpenner/following{/other_user}","gists_url":"https://api.github.com/users/mnpenner/gists{/gist_id}","starred_url":"https://api.github.com/users/mnpenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnpenner/subscriptions","organizations_url":"https://api.github.com/users/mnpenner/orgs","repos_url":"https://api.github.com/users/mnpenner/repos","events_url":"https://api.github.com/users/mnpenner/events{/privacy}","received_events_url":"https://api.github.com/users/mnpenner/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-01-19T20:53:03Z","updated_at":"2016-08-21T13:59:46Z","closed_at":"2016-08-21T13:59:46Z","body":"Here's the scenario: I start up webpack-dev-server and wait for my page to finish loading. Then I edit a .less file on my computer, it gets rsync'd into my Vagrant box where webpack-dev-server is running, WDS picks up the change and HMR refreshes my CSS without a full page reload. However, when I edit my .less *again* then nothing happens. Nothing is logged to Chrome's dev console, and WDS doesn't print anything to the terminal.\r\n\r\nIf I enable polling,\r\n\r\n    watchOptions: {\r\n        aggregateTimeout: 250,\r\n        poll: 50\r\n    },\r\n\r\nthen everything works fine.\r\n\r\nIf I had to take a guess, I suspect rsync is recreating the file and that's destroying the [inotify?] watch. At least that would explain why it works once.\r\n"}}
{"actor":{"display_login":"SpaceK33z"}}