{"action":"created","issue":{"url":"https://api.github.com/repos/postcss/autoprefixer/issues/553","labels_url":"https://api.github.com/repos/postcss/autoprefixer/issues/553/labels{/name}","comments_url":"https://api.github.com/repos/postcss/autoprefixer/issues/553/comments","events_url":"https://api.github.com/repos/postcss/autoprefixer/issues/553/events","html_url":"https://github.com/postcss/autoprefixer/issues/553","id":115522003,"number":553,"title":"Sourcemaps are breaking when autoprefixer is included","user":{"login":"samuel99","id":223954,"avatar_url":"https://avatars.githubusercontent.com/u/223954?v=3","gravatar_id":"","url":"https://api.github.com/users/samuel99","html_url":"https://github.com/samuel99","followers_url":"https://api.github.com/users/samuel99/followers","following_url":"https://api.github.com/users/samuel99/following{/other_user}","gists_url":"https://api.github.com/users/samuel99/gists{/gist_id}","starred_url":"https://api.github.com/users/samuel99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuel99/subscriptions","organizations_url":"https://api.github.com/users/samuel99/orgs","repos_url":"https://api.github.com/users/samuel99/repos","events_url":"https://api.github.com/users/samuel99/events{/privacy}","received_events_url":"https://api.github.com/users/samuel99/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-06T15:07:45Z","updated_at":"2015-11-07T00:03:52Z","closed_at":null,"body":"First off, I'm pretty new to Gulp. If I did something wrong here I apologize in advance.\r\n\r\nSo, this is my current task for compiling SASS, run autoprefixer, append hash to filename and create sourcemaps:\r\n\r\n```javascript\r\nvar autoprefixerOptions = {\r\n      browsers: ['last 2 versions', 'ie 9-10']\r\n    },\r\n    inputScss = \"./ui/customer/scss/**/*.scss\",\r\n    output = \"../Sitecore/website/ui/customer/dist/\",\r\n    sourceMapPath = \"maps/\",\r\n    sassOptions = {\r\n        outputStyle: 'compressed'\r\n    },\r\n    revManifestOptions = {\r\n        base: output,\r\n        merge: true\r\n    };\r\n\r\ngulp.task('sass', function () {\r\n    gulp.src(inputScss)\r\n        .pipe(sourcemaps.init())\r\n        .pipe(sass(sassOptions).on('error', sass.logError))\r\n        //.pipe(autoprefixer(autoprefixerOptions))\r\n        .pipe(rev())\r\n        .pipe(sourcemaps.write(sourceMapPath))\r\n        .pipe(gulp.dest(output))\r\n        .pipe(rev.manifest({\r\n            base: output,\r\n            merge: true\r\n        }))\r\n        .pipe(gulp.dest(output));\r\n});\r\n```\r\n\r\nIf I run it like this, the sourcemaps works great:\r\n```\r\n\"sources\":[\"lib/bootstrap/_bootstrap.scss\",\"lib/bootstrap/bootstrap/_normalize.scss\",\"lib/bootstrap/bootstrap/_print.scss\",\"lib/bootstrap/bootstrap/_glyphicons.scss\",\"lib/bootstrap/bootstrap/_scaffolding.scss\",\"lib/bootstrap/bootstrap/mixins/_vendor-prefixes.scss\",\"lib/bootstrap/bootstrap/_variables.scss\",\"lib/bootstrap/bootstrap/mixins/_tab-focus.scss\",\"lib/bootstrap/bootstrap/mixins/_image.scss\",\"lib/bootstrap/bootstrap/_...\r\n```\r\n\r\nBut, if I remove the comment on the autoprefixer line the sourcemaps are not \"compiling\" from source, but from the generated file:\r\n```\r\n\"sources\":[\"framework.css\"]\r\n```\r\n\r\nAny ideas? All packages are latest version.\r\n\r\nBest regards, Samuel"},"comment":{"url":"https://api.github.com/repos/postcss/autoprefixer/issues/comments/154581876","html_url":"https://github.com/postcss/autoprefixer/issues/553#issuecomment-154581876","issue_url":"https://api.github.com/repos/postcss/autoprefixer/issues/553","id":154581876,"user":{"login":"ai","id":19343,"avatar_url":"https://avatars.githubusercontent.com/u/19343?v=3","gravatar_id":"","url":"https://api.github.com/users/ai","html_url":"https://github.com/ai","followers_url":"https://api.github.com/users/ai/followers","following_url":"https://api.github.com/users/ai/following{/other_user}","gists_url":"https://api.github.com/users/ai/gists{/gist_id}","starred_url":"https://api.github.com/users/ai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ai/subscriptions","organizations_url":"https://api.github.com/users/ai/orgs","repos_url":"https://api.github.com/users/ai/repos","events_url":"https://api.github.com/users/ai/events{/privacy}","received_events_url":"https://api.github.com/users/ai/received_events","type":"User","site_admin":false},"created_at":"2015-11-07T00:03:52Z","updated_at":"2015-11-07T00:03:52Z","body":"Try official [gulp-postcss](https://github.com/postcss/gulp-postcss) with `autoprefixer` instead of unofficial `gulp-autoprefixer`."}}