{"action":"created","issue":{"url":"https://api.github.com/repos/nDmitry/grunt-autoprefixer/issues/91","labels_url":"https://api.github.com/repos/nDmitry/grunt-autoprefixer/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/nDmitry/grunt-autoprefixer/issues/91/comments","events_url":"https://api.github.com/repos/nDmitry/grunt-autoprefixer/issues/91/events","html_url":"https://github.com/nDmitry/grunt-autoprefixer/issues/91","id":54504969,"number":91,"title":"map.sourceContent option ignored unless map.inline:true","user":{"login":"menzer","id":938511,"avatar_url":"https://avatars.githubusercontent.com/u/938511?v=3","gravatar_id":"","url":"https://api.github.com/users/menzer","html_url":"https://github.com/menzer","followers_url":"https://api.github.com/users/menzer/followers","following_url":"https://api.github.com/users/menzer/following{/other_user}","gists_url":"https://api.github.com/users/menzer/gists{/gist_id}","starred_url":"https://api.github.com/users/menzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/menzer/subscriptions","organizations_url":"https://api.github.com/users/menzer/orgs","repos_url":"https://api.github.com/users/menzer/repos","events_url":"https://api.github.com/users/menzer/events{/privacy}","received_events_url":"https://api.github.com/users/menzer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-15T21:13:10Z","updated_at":"2015-01-17T20:03:52Z","closed_at":null,"body":"**Expected behavior**: setting `map.sourceContent: false` doesn't generate `sourcesContent` in source map\r\n**Observed behavior**: `map.sourceContent` only affects the source map file when `map.inline: true`, but the inline source map still contains `sourcesContent`\r\n\r\nThis is harmful because the `sourcesContent` output breaks variable linking.\r\n\r\n---\r\n\r\nI noticed that with grunt-autoprefixer running, cmd-clicking a value set by a variable no longer linked to the variable definition, and instead linked to the rule. After experimenting with various settings, I found that the sourcesContent property in the source map file seems incompatible with Chrome's variable linking. \r\n\r\nI set map.sourceContent:false, and found that grunt-autoprefixer was still generating source maps with sourcesContent. The only time sourcesContent seemed to work was when inline source maps were generated, which still contain the sourcesContent, and still break Chromes variable linking."},"comment":{"url":"https://api.github.com/repos/nDmitry/grunt-autoprefixer/issues/comments/70382110","html_url":"https://github.com/nDmitry/grunt-autoprefixer/issues/91#issuecomment-70382110","issue_url":"https://api.github.com/repos/nDmitry/grunt-autoprefixer/issues/91","id":70382110,"user":{"login":"menzer","id":938511,"avatar_url":"https://avatars.githubusercontent.com/u/938511?v=3","gravatar_id":"","url":"https://api.github.com/users/menzer","html_url":"https://github.com/menzer","followers_url":"https://api.github.com/users/menzer/followers","following_url":"https://api.github.com/users/menzer/following{/other_user}","gists_url":"https://api.github.com/users/menzer/gists{/gist_id}","starred_url":"https://api.github.com/users/menzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/menzer/subscriptions","organizations_url":"https://api.github.com/users/menzer/orgs","repos_url":"https://api.github.com/users/menzer/repos","events_url":"https://api.github.com/users/menzer/events{/privacy}","received_events_url":"https://api.github.com/users/menzer/received_events","type":"User","site_admin":false},"created_at":"2015-01-17T20:03:52Z","updated_at":"2015-01-17T20:03:52Z","body":"Yep, that seems to work as expected. Thanks!"}}