{"action":"created","issue":{"url":"https://api.github.com/repos/postcss/postcss/issues/907","repository_url":"https://api.github.com/repos/postcss/postcss","labels_url":"https://api.github.com/repos/postcss/postcss/issues/907/labels{/name}","comments_url":"https://api.github.com/repos/postcss/postcss/issues/907/comments","events_url":"https://api.github.com/repos/postcss/postcss/issues/907/events","html_url":"https://github.com/postcss/postcss/issues/907","id":185612799,"number":907,"title":"postcss is injecting generated .css file into source list","user":{"login":"airdrummingfool","id":631249,"avatar_url":"https://avatars2.githubusercontent.com/u/631249?v=3","gravatar_id":"","url":"https://api.github.com/users/airdrummingfool","html_url":"https://github.com/airdrummingfool","followers_url":"https://api.github.com/users/airdrummingfool/followers","following_url":"https://api.github.com/users/airdrummingfool/following{/other_user}","gists_url":"https://api.github.com/users/airdrummingfool/gists{/gist_id}","starred_url":"https://api.github.com/users/airdrummingfool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airdrummingfool/subscriptions","organizations_url":"https://api.github.com/users/airdrummingfool/orgs","repos_url":"https://api.github.com/users/airdrummingfool/repos","events_url":"https://api.github.com/users/airdrummingfool/events{/privacy}","received_events_url":"https://api.github.com/users/airdrummingfool/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2016-10-27T09:08:49Z","updated_at":"2017-05-02T05:59:58Z","closed_at":"2017-04-14T03:35:08Z","body":"Using gulp and gulp-usemin, I compile a set of LESS files into one generated `main.css` file. When including postcss (without any plugins) in the pipeline, the sourcemaps include this generated `main.css` file in the `sources` list.\n\nSimplified version of `main.css.map` file without postcss:\n\n```\n{\n\"version\":3,\n\"sources\":[\"app/styles/less/common.less\",\"app/styles/less/custom.less\",\"app/styles/less/login.less\",\"app/styles/less/admin.less\"],\n\"names\":[],\n\"mappings\":\"...\",\n\"file\":\"main.css\",\n\"sourcesContent\":[\"...\"]\n}\n```\n\nSimplified version of `main.css.map` with postcss (without any plugins):\n\n```\n{\n\"version\":3,\n\"sources\":[\"app/styles/less/common.less\",\"styles/main.css\",\"app/styles/less/custom.less\",\"app/styles/less/login.less\",\"app/styles/less/admin.less\"],\n\"names\":[],\n\"mappings\":\"...\",\n\"file\":\"main.css\",\n\"sourcesContent\":[\"...\"]\n}\n```\n\nHow can I prevent postcss from adding `\"styles/main.css\"` to the sourcemap sources? I've tried various permutations of the `from`, `to`, and `map` options listed on the [postcss and sourcemaps page](https://github.com/postcss/postcss/blob/master/docs/source-maps.md), but I can't figure it out.\n"},"comment":{"url":"https://api.github.com/repos/postcss/postcss/issues/comments/298504295","html_url":"https://github.com/postcss/postcss/issues/907#issuecomment-298504295","issue_url":"https://api.github.com/repos/postcss/postcss/issues/907","id":298504295,"user":{"login":"airdrummingfool","id":631249,"avatar_url":"https://avatars2.githubusercontent.com/u/631249?v=3","gravatar_id":"","url":"https://api.github.com/users/airdrummingfool","html_url":"https://github.com/airdrummingfool","followers_url":"https://api.github.com/users/airdrummingfool/followers","following_url":"https://api.github.com/users/airdrummingfool/following{/other_user}","gists_url":"https://api.github.com/users/airdrummingfool/gists{/gist_id}","starred_url":"https://api.github.com/users/airdrummingfool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airdrummingfool/subscriptions","organizations_url":"https://api.github.com/users/airdrummingfool/orgs","repos_url":"https://api.github.com/users/airdrummingfool/repos","events_url":"https://api.github.com/users/airdrummingfool/events{/privacy}","received_events_url":"https://api.github.com/users/airdrummingfool/received_events","type":"User","site_admin":false},"created_at":"2017-05-02T05:59:58Z","updated_at":"2017-05-02T05:59:58Z","body":"@ai I'm not sure I understand... without PostCSS, the issue does not happen. Can you elaborate on how it is a bug in `source-map` instead of PostCSS?"}}
{"actor":{"display_login":"airdrummingfool"}}