{"action":"created","issue":{"url":"https://api.github.com/repos/w0rm/gulp-postcss/issues/18","labels_url":"https://api.github.com/repos/w0rm/gulp-postcss/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/w0rm/gulp-postcss/issues/18/comments","events_url":"https://api.github.com/repos/w0rm/gulp-postcss/issues/18/events","html_url":"https://github.com/w0rm/gulp-postcss/issues/18","id":54674297,"number":18,"title":"Sourcemaps doesn't work","user":{"login":"TrySound","id":5635476,"avatar_url":"https://avatars.githubusercontent.com/u/5635476?v=3","gravatar_id":"","url":"https://api.github.com/users/TrySound","html_url":"https://github.com/TrySound","followers_url":"https://api.github.com/users/TrySound/followers","following_url":"https://api.github.com/users/TrySound/following{/other_user}","gists_url":"https://api.github.com/users/TrySound/gists{/gist_id}","starred_url":"https://api.github.com/users/TrySound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrySound/subscriptions","organizations_url":"https://api.github.com/users/TrySound/orgs","repos_url":"https://api.github.com/users/TrySound/repos","events_url":"https://api.github.com/users/TrySound/events{/privacy}","received_events_url":"https://api.github.com/users/TrySound/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-01-17T20:35:48Z","updated_at":"2015-01-23T23:29:04Z","closed_at":null,"body":"I compile css with this\r\n\r\n```\r\n\treturn gulp.src(bower(['**/*.css']).concat([\r\n\t\t\t'src/css/plugins/[^_]*.css',\r\n\t\t\t'src/css/globals/[^_]*.css',\r\n\t\t\t'src/css/shared/[^_]*.css',\r\n\t\t\t'src/css/components/[^_]*.css',\r\n\t\t\t'src/css/sections/[^_]*.css'\r\n\t\t]))\r\n\t\t.pipe($.sourcemaps.init())\r\n\t\t.pipe($.concat('bundle.css'))\r\n\t\t.pipe($.plumber())\r\n\t\t.pipe($.postcss([\r\n\t\t\trequire('autoprefixer-core')()\r\n\t\t]))\r\n\t\t.pipe(gulp.dest('dist/assets/css'))\r\n\t\t.pipe($.rename({suffix: '.min'}))\r\n\t\t.pipe($.plumber())\r\n\t\t.pipe($.postcss([\r\n\t\t\trequire('csswring')({\r\n\t\t\t\tremoveAllComments: true\r\n\t\t\t})\r\n\t\t]))\r\n\t\t.pipe($.sourcemaps.write('.'))\r\n\t\t.pipe(gulp.dest('dist/assets/css'));\r\n```\r\n\r\nAnd chrome gave me `bundle.css` in sources with `bundle.min.css` name.\r\nWhen I commented both postcss pipes, it worked."},"comment":{"url":"https://api.github.com/repos/w0rm/gulp-postcss/issues/comments/71284515","html_url":"https://github.com/w0rm/gulp-postcss/issues/18#issuecomment-71284515","issue_url":"https://api.github.com/repos/w0rm/gulp-postcss/issues/18","id":71284515,"user":{"login":"w0rm","id":43472,"avatar_url":"https://avatars.githubusercontent.com/u/43472?v=3","gravatar_id":"","url":"https://api.github.com/users/w0rm","html_url":"https://github.com/w0rm","followers_url":"https://api.github.com/users/w0rm/followers","following_url":"https://api.github.com/users/w0rm/following{/other_user}","gists_url":"https://api.github.com/users/w0rm/gists{/gist_id}","starred_url":"https://api.github.com/users/w0rm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w0rm/subscriptions","organizations_url":"https://api.github.com/users/w0rm/orgs","repos_url":"https://api.github.com/users/w0rm/repos","events_url":"https://api.github.com/users/w0rm/events{/privacy}","received_events_url":"https://api.github.com/users/w0rm/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T23:29:04Z","updated_at":"2015-01-23T23:29:04Z","body":"@TrySound I have to use file.relative in postcss to resolve this issue, but it will cause regression. In the meantime you can fix your code with this: \r\n\r\n```js\r\ngulp.task('postcss', function () {\r\n\tgulp.src('src/*.css', {base: '.'})\r\n\t\t.pipe(sourcemaps.init())\r\n\t\t.pipe(concat('result-postcss.css'))\r\n\t\t.pipe(postcss([\r\n\t\t\trequire('csswring')\r\n\t\t]))\r\n\t\t.pipe(sourcemaps.write('.'))\r\n\t\t.pipe(gulp.dest('dist'));\r\n});\r\n```"}}