{"action":"created","comment":{"url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/pulls/comments/55338955","id":55338955,"diff_hunk":"@@ -22,10 +23,16 @@ module.exports = function (opts) {\n \t\t\tfrom: file.path,\n \t\t\tto: file.path\n \t\t}).then(function (res) {\n+\t\t\tvar map;\n \t\t\tfile.contents = new Buffer(res.css);\n \n \t\t\tif (res.map && file.sourceMap) {\n-\t\t\t\tapplySourceMap(file, res.map.toString());\n+\t\t\t\tmap = res.map.toJSON();\n+\t\t\t\tmap.file = file.relative;\n+\t\t\t\tmap.sources = [].map.call(map.sources, function (source) {\n+\t\t\t\t\treturn path.join(path.dirname(file.relative), source);\n+\t\t\t\t});","path":"index.js","position":21,"original_position":21,"commit_id":"6067f16f46cf6a41cec352d1cd97af78cc1599f3","original_commit_id":"6067f16f46cf6a41cec352d1cd97af78cc1599f3","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"body":"No, I mean the whole change. Why is any of this needed. It should just work. I don't think it makes sense to work around stuff here. It should rather be fixed upstream so it benefits all consumers.","created_at":"2016-03-08T10:09:13Z","updated_at":"2016-03-08T10:09:13Z","html_url":"https://github.com/sindresorhus/gulp-autoprefixer/pull/61#discussion_r55338955","pull_request_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/pulls/61","_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/pulls/comments/55338955"},"html":{"href":"https://github.com/sindresorhus/gulp-autoprefixer/pull/61#discussion_r55338955"},"pull_request":{"href":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/pulls/61"}}},"pull_request":{"url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/pulls/61","id":62041533,"html_url":"https://github.com/sindresorhus/gulp-autoprefixer/pull/61","diff_url":"https://github.com/sindresorhus/gulp-autoprefixer/pull/61.diff","patch_url":"https://github.com/sindresorhus/gulp-autoprefixer/pull/61.patch","issue_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/issues/61","number":61,"state":"open","locked":false,"title":"Fix #55, issue with sourcemap output","user":{"login":"Saturate","id":453018,"avatar_url":"https://avatars.githubusercontent.com/u/453018?v=3","gravatar_id":"","url":"https://api.github.com/users/Saturate","html_url":"https://github.com/Saturate","followers_url":"https://api.github.com/users/Saturate/followers","following_url":"https://api.github.com/users/Saturate/following{/other_user}","gists_url":"https://api.github.com/users/Saturate/gists{/gist_id}","starred_url":"https://api.github.com/users/Saturate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Saturate/subscriptions","organizations_url":"https://api.github.com/users/Saturate/orgs","repos_url":"https://api.github.com/users/Saturate/repos","events_url":"https://api.github.com/users/Saturate/events{/privacy}","received_events_url":"https://api.github.com/users/Saturate/received_events","type":"User","site_admin":false},"body":"This fixes issue #55 for me with css generated from less. Code adapted from `gulp-postcss`","created_at":"2016-03-08T08:57:19Z","updated_at":"2016-03-08T10:09:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5c0a90e1ac1c61bffb1e48a32a740fa01fd2980c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/pulls/61/commits","review_comments_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/pulls/61/comments","review_comment_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/issues/61/comments","statuses_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/statuses/6067f16f46cf6a41cec352d1cd97af78cc1599f3","head":{"label":"Saturate:patch-1","ref":"patch-1","sha":"6067f16f46cf6a41cec352d1cd97af78cc1599f3","user":{"login":"Saturate","id":453018,"avatar_url":"https://avatars.githubusercontent.com/u/453018?v=3","gravatar_id":"","url":"https://api.github.com/users/Saturate","html_url":"https://github.com/Saturate","followers_url":"https://api.github.com/users/Saturate/followers","following_url":"https://api.github.com/users/Saturate/following{/other_user}","gists_url":"https://api.github.com/users/Saturate/gists{/gist_id}","starred_url":"https://api.github.com/users/Saturate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Saturate/subscriptions","organizations_url":"https://api.github.com/users/Saturate/orgs","repos_url":"https://api.github.com/users/Saturate/repos","events_url":"https://api.github.com/users/Saturate/events{/privacy}","received_events_url":"https://api.github.com/users/Saturate/received_events","type":"User","site_admin":false},"repo":{"id":53397179,"name":"gulp-autoprefixer","full_name":"Saturate/gulp-autoprefixer","owner":{"login":"Saturate","id":453018,"avatar_url":"https://avatars.githubusercontent.com/u/453018?v=3","gravatar_id":"","url":"https://api.github.com/users/Saturate","html_url":"https://github.com/Saturate","followers_url":"https://api.github.com/users/Saturate/followers","following_url":"https://api.github.com/users/Saturate/following{/other_user}","gists_url":"https://api.github.com/users/Saturate/gists{/gist_id}","starred_url":"https://api.github.com/users/Saturate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Saturate/subscriptions","organizations_url":"https://api.github.com/users/Saturate/orgs","repos_url":"https://api.github.com/users/Saturate/repos","events_url":"https://api.github.com/users/Saturate/events{/privacy}","received_events_url":"https://api.github.com/users/Saturate/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Saturate/gulp-autoprefixer","description":"Prefix CSS","fork":true,"url":"https://api.github.com/repos/Saturate/gulp-autoprefixer","forks_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/forks","keys_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/teams","hooks_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/hooks","issue_events_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/issues/events{/number}","events_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/events","assignees_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/assignees{/user}","branches_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/branches{/branch}","tags_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/tags","blobs_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/git/refs{/sha}","trees_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/statuses/{sha}","languages_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/languages","stargazers_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/stargazers","contributors_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/contributors","subscribers_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/subscribers","subscription_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/subscription","commits_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/commits{/sha}","git_commits_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/git/commits{/sha}","comments_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/comments{/number}","issue_comment_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/issues/comments{/number}","contents_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/contents/{+path}","compare_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/merges","archive_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/downloads","issues_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/issues{/number}","pulls_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/pulls{/number}","milestones_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/milestones{/number}","notifications_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/labels{/name}","releases_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/releases{/id}","deployments_url":"https://api.github.com/repos/Saturate/gulp-autoprefixer/deployments","created_at":"2016-03-08T08:53:56Z","updated_at":"2016-03-08T08:53:57Z","pushed_at":"2016-03-08T09:00:55Z","git_url":"git://github.com/Saturate/gulp-autoprefixer.git","ssh_url":"git@github.com:Saturate/gulp-autoprefixer.git","clone_url":"https://github.com/Saturate/gulp-autoprefixer.git","svn_url":"https://github.com/Saturate/gulp-autoprefixer","homepage":null,"size":20,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sindresorhus:master","ref":"master","sha":"8cc62f4fa3c8bc8ab1efe2c59fe7c13ee5c7b652","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"repo":{"id":23797315,"name":"gulp-autoprefixer","full_name":"sindresorhus/gulp-autoprefixer","owner":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sindresorhus/gulp-autoprefixer","description":"Prefix CSS","fork":false,"url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer","forks_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/forks","keys_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/teams","hooks_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/hooks","issue_events_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/issues/events{/number}","events_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/events","assignees_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/assignees{/user}","branches_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/branches{/branch}","tags_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/tags","blobs_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/git/refs{/sha}","trees_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/statuses/{sha}","languages_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/languages","stargazers_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/stargazers","contributors_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/contributors","subscribers_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/subscribers","subscription_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/subscription","commits_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/commits{/sha}","git_commits_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/git/commits{/sha}","comments_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/comments{/number}","issue_comment_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/issues/comments{/number}","contents_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/contents/{+path}","compare_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/merges","archive_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/downloads","issues_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/issues{/number}","pulls_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/pulls{/number}","milestones_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/milestones{/number}","notifications_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/labels{/name}","releases_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/releases{/id}","deployments_url":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/deployments","created_at":"2014-09-08T15:51:24Z","updated_at":"2016-03-08T09:11:41Z","pushed_at":"2016-03-08T09:00:55Z","git_url":"git://github.com/sindresorhus/gulp-autoprefixer.git","ssh_url":"git@github.com:sindresorhus/gulp-autoprefixer.git","clone_url":"https://github.com/sindresorhus/gulp-autoprefixer.git","svn_url":"https://github.com/sindresorhus/gulp-autoprefixer","homepage":null,"size":246,"stargazers_count":359,"watchers_count":359,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":3,"forks":22,"open_issues":3,"watchers":359,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/pulls/61"},"html":{"href":"https://github.com/sindresorhus/gulp-autoprefixer/pull/61"},"issue":{"href":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/issues/61"},"comments":{"href":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/sindresorhus/gulp-autoprefixer/statuses/6067f16f46cf6a41cec352d1cd97af78cc1599f3"}}}}