{"action":"created","issue":{"url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/484","labels_url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/484/labels{/name}","comments_url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/484/comments","events_url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/484/events","html_url":"https://github.com/jakubpawlowicz/clean-css/issues/484","id":60201700,"number":484,"title":"No sources in sourcemap when files passed using hash method","user":{"login":"AdamBurgess","id":7473960,"avatar_url":"https://avatars.githubusercontent.com/u/7473960?v=3","gravatar_id":"","url":"https://api.github.com/users/AdamBurgess","html_url":"https://github.com/AdamBurgess","followers_url":"https://api.github.com/users/AdamBurgess/followers","following_url":"https://api.github.com/users/AdamBurgess/following{/other_user}","gists_url":"https://api.github.com/users/AdamBurgess/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamBurgess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamBurgess/subscriptions","organizations_url":"https://api.github.com/users/AdamBurgess/orgs","repos_url":"https://api.github.com/users/AdamBurgess/repos","events_url":"https://api.github.com/users/AdamBurgess/events{/privacy}","received_events_url":"https://api.github.com/users/AdamBurgess/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jakubpawlowicz/clean-css/milestones/30","html_url":"https://github.com/jakubpawlowicz/clean-css/milestones/3.2","labels_url":"https://api.github.com/repos/jakubpawlowicz/clean-css/milestones/30/labels","id":924656,"number":30,"title":"3.2","description":null,"creator":{"login":"jakubpawlowicz","id":24273,"avatar_url":"https://avatars.githubusercontent.com/u/24273?v=3","gravatar_id":"","url":"https://api.github.com/users/jakubpawlowicz","html_url":"https://github.com/jakubpawlowicz","followers_url":"https://api.github.com/users/jakubpawlowicz/followers","following_url":"https://api.github.com/users/jakubpawlowicz/following{/other_user}","gists_url":"https://api.github.com/users/jakubpawlowicz/gists{/gist_id}","starred_url":"https://api.github.com/users/jakubpawlowicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakubpawlowicz/subscriptions","organizations_url":"https://api.github.com/users/jakubpawlowicz/orgs","repos_url":"https://api.github.com/users/jakubpawlowicz/repos","events_url":"https://api.github.com/users/jakubpawlowicz/events{/privacy}","received_events_url":"https://api.github.com/users/jakubpawlowicz/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":3,"state":"open","created_at":"2015-01-06T23:22:40Z","updated_at":"2015-03-16T21:12:05Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-03-07T10:58:06Z","updated_at":"2015-03-16T21:14:30Z","closed_at":null,"body":"I'm trying to minify multiple sources, then create a source map for those files.\r\nThe files themselves don't have source maps.\r\nIs this functionality supported/supposed to be supported? I had a look at the tests and nothing covered this use case.\r\nUsing the filename directly in an array works, but using the filename + contents fails.\r\n````\r\nnew CleanCSS({ sourceMap: true, target: '.' }).minify({\r\n  'source1.css': {\r\n    styles: 'contents of source1.css'\r\n  },\r\n  'source2.css': {\r\n    styles: 'contents of source2.css'\r\n  },\r\n});\r\n````\r\nthe source map output:\r\n````\r\n{\r\n  \"version\": 3,\r\n  \"sources\": [\"$stdin.css\"],\r\n  \"names\": [],\r\n  \"mappings\": \"mapping code here\"\r\n}\r\n````\r\n"},"comment":{"url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/comments/81944368","html_url":"https://github.com/jakubpawlowicz/clean-css/issues/484#issuecomment-81944368","issue_url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/484","id":81944368,"user":{"login":"jakubpawlowicz","id":24273,"avatar_url":"https://avatars.githubusercontent.com/u/24273?v=3","gravatar_id":"","url":"https://api.github.com/users/jakubpawlowicz","html_url":"https://github.com/jakubpawlowicz","followers_url":"https://api.github.com/users/jakubpawlowicz/followers","following_url":"https://api.github.com/users/jakubpawlowicz/following{/other_user}","gists_url":"https://api.github.com/users/jakubpawlowicz/gists{/gist_id}","starred_url":"https://api.github.com/users/jakubpawlowicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakubpawlowicz/subscriptions","organizations_url":"https://api.github.com/users/jakubpawlowicz/orgs","repos_url":"https://api.github.com/users/jakubpawlowicz/repos","events_url":"https://api.github.com/users/jakubpawlowicz/events{/privacy}","received_events_url":"https://api.github.com/users/jakubpawlowicz/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T21:14:30Z","updated_at":"2015-03-16T21:14:30Z","body":"@AdamBurgess it's implemented on master now! https://github.com/jakubpawlowicz/clean-css/commit/9c74966ff7bc2a0fafcf94277a8e5ac321b4a0cc#diff-9eb831640e84d334de8c721591bfb179R1143 seems to be your use case."}}