{"action":"created","issue":{"url":"https://api.github.com/repos/jtangelder/sass-loader/issues/102","labels_url":"https://api.github.com/repos/jtangelder/sass-loader/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/jtangelder/sass-loader/issues/102/comments","events_url":"https://api.github.com/repos/jtangelder/sass-loader/issues/102/events","html_url":"https://github.com/jtangelder/sass-loader/issues/102","id":79004898,"number":102,"title":"Webpack watch isn't working on Windows for nested imports","user":{"login":"gabrielenosso","id":4018887,"avatar_url":"https://avatars.githubusercontent.com/u/4018887?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrielenosso","html_url":"https://github.com/gabrielenosso","followers_url":"https://api.github.com/users/gabrielenosso/followers","following_url":"https://api.github.com/users/gabrielenosso/following{/other_user}","gists_url":"https://api.github.com/users/gabrielenosso/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielenosso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielenosso/subscriptions","organizations_url":"https://api.github.com/users/gabrielenosso/orgs","repos_url":"https://api.github.com/users/gabrielenosso/repos","events_url":"https://api.github.com/users/gabrielenosso/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielenosso/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-21T13:54:38Z","updated_at":"2015-07-27T15:53:45Z","closed_at":null,"body":"Hi guys,\r\nI created a repository in which you can check the bug: https://github.com/gabrielenosso/sass-loader-watch-problem .\r\n\r\nI have a .js file which requires just one main SASS file: ./style.scss.\r\nThis file imports the file ./classes/button.scss.\r\nThe button.scss file imports another file: ./partials/_button.scss.\r\n\r\nPractically, if you run the webpack dev server in hot mode (just executing \"npm start\"), it automatically reloads if you save the \"style.scss\" file (root of scss) or the ./classes/button.scss file (1st level of @import), but it doesn't reload if you save the ./partials/_button.scss file (2nd level of import).\r\n\r\nIt only happens on Windows. Could it be a bug related to '\\' and '/' used for paths differently in Mac and Win? Or do you have any clue?"},"comment":{"url":"https://api.github.com/repos/jtangelder/sass-loader/issues/comments/125252690","html_url":"https://github.com/jtangelder/sass-loader/issues/102#issuecomment-125252690","issue_url":"https://api.github.com/repos/jtangelder/sass-loader/issues/102","id":125252690,"user":{"login":"strayiker","id":6754588,"avatar_url":"https://avatars.githubusercontent.com/u/6754588?v=3","gravatar_id":"","url":"https://api.github.com/users/strayiker","html_url":"https://github.com/strayiker","followers_url":"https://api.github.com/users/strayiker/followers","following_url":"https://api.github.com/users/strayiker/following{/other_user}","gists_url":"https://api.github.com/users/strayiker/gists{/gist_id}","starred_url":"https://api.github.com/users/strayiker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strayiker/subscriptions","organizations_url":"https://api.github.com/users/strayiker/orgs","repos_url":"https://api.github.com/users/strayiker/repos","events_url":"https://api.github.com/users/strayiker/events{/privacy}","received_events_url":"https://api.github.com/users/strayiker/received_events","type":"User","site_admin":false},"created_at":"2015-07-27T15:53:45Z","updated_at":"2015-07-27T15:53:45Z","body":"```\r\n// When files have been imported via the includePaths-option, these files need to be\r\n// introduced to webpack in order to make them watchable.\r\nfunction addIncludedFilesToWebpack(includedFiles) {\r\n    includedFiles.forEach(function(filename) {\r\n        self.dependency(path.normalize(filename));\r\n    });\r\n}\r\n```\r\ni add path.normalize() for dependencies and it works )\r\nbefore: c:/repo/project\r\nafter: c:\\repo\\project\r\n\r\nI hope it will help in solving the problem"}}