{"action":"created","issue":{"url":"https://api.github.com/repos/madskristensen/WebCompiler/issues/169","labels_url":"https://api.github.com/repos/madskristensen/WebCompiler/issues/169/labels{/name}","comments_url":"https://api.github.com/repos/madskristensen/WebCompiler/issues/169/comments","events_url":"https://api.github.com/repos/madskristensen/WebCompiler/issues/169/events","html_url":"https://github.com/madskristensen/WebCompiler/issues/169","id":124329602,"number":169,"title":"Sass/Less-Files not recompiling when imported file has been changed","user":{"login":"msandberger","id":6221394,"avatar_url":"https://avatars.githubusercontent.com/u/6221394?v=3","gravatar_id":"","url":"https://api.github.com/users/msandberger","html_url":"https://github.com/msandberger","followers_url":"https://api.github.com/users/msandberger/followers","following_url":"https://api.github.com/users/msandberger/following{/other_user}","gists_url":"https://api.github.com/users/msandberger/gists{/gist_id}","starred_url":"https://api.github.com/users/msandberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msandberger/subscriptions","organizations_url":"https://api.github.com/users/msandberger/orgs","repos_url":"https://api.github.com/users/msandberger/repos","events_url":"https://api.github.com/users/msandberger/events{/privacy}","received_events_url":"https://api.github.com/users/msandberger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-30T10:13:27Z","updated_at":"2016-01-14T08:27:27Z","closed_at":null,"body":"Hello!\r\n\r\nThe scenario is a file Main.scss which includes a file Variables.scss.\r\n\r\nWhen the included file is changed, I would expect that the Main-file is automatically recompiled.\r\nThat does not happen, not even when I do a \"Recompile all files in solution\".\r\nOnly when I manually save the Main-file or the compilerconfig.json, then the main-output is updated.\r\n\r\nThis behaviour can be observed with both LESS and SASS files. \r\nThere is closed issue which sounds similar: #125 \r\n\r\nI am using Visual Studio Enterprise 2015 with Update 1. Also WebEssentials 2015.1 and WebCompiler 1.9.286. Even tried disabling Web Essentials and Resharper, did not change anything.\r\n\r\nI attached a simple VS-solution to reproduce the issue: Changing a value in the Variables-file and saving that file does not trigger a recompile of the Main-file:\r\n[WebCompilerIssueRepro.zip](https://github.com/madskristensen/WebCompiler/files/74744/WebCompilerIssueRepro.zip)\r\n\r\n\r\nThanks & Happy new year!"},"comment":{"url":"https://api.github.com/repos/madskristensen/WebCompiler/issues/comments/171570561","html_url":"https://github.com/madskristensen/WebCompiler/issues/169#issuecomment-171570561","issue_url":"https://api.github.com/repos/madskristensen/WebCompiler/issues/169","id":171570561,"user":{"login":"msandberger","id":6221394,"avatar_url":"https://avatars.githubusercontent.com/u/6221394?v=3","gravatar_id":"","url":"https://api.github.com/users/msandberger","html_url":"https://github.com/msandberger","followers_url":"https://api.github.com/users/msandberger/followers","following_url":"https://api.github.com/users/msandberger/following{/other_user}","gists_url":"https://api.github.com/users/msandberger/gists{/gist_id}","starred_url":"https://api.github.com/users/msandberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msandberger/subscriptions","organizations_url":"https://api.github.com/users/msandberger/orgs","repos_url":"https://api.github.com/users/msandberger/repos","events_url":"https://api.github.com/users/msandberger/events{/privacy}","received_events_url":"https://api.github.com/users/msandberger/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T08:27:27Z","updated_at":"2016-01-14T08:27:27Z","body":"I just found out that this issue only occurs if the included file is listed in the compilerconfig.json.\r\n\r\nThe following constellation works as expected:\r\n* _Main.scss_: Listed in compilerconfig, imports _Variables.scss_\r\n* _Variables.scss_: NOT listed in compilerconfig\r\n* Edit/Save _Variables.scss_ -> Main-Output is updated\r\n\r\nSo, including only your actual target files in the compilerconfig.json and leaving out all the imports seems like a feasible workaround for the time being. But if you have files which are both imported and used standalone, the described solution does not work (because there is no output generated for files which are not listed in compilerconfig)."}}