{"action":"created","issue":{"url":"https://api.github.com/repos/ashaffer/gulp-inline/issues/14","labels_url":"https://api.github.com/repos/ashaffer/gulp-inline/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/ashaffer/gulp-inline/issues/14/comments","events_url":"https://api.github.com/repos/ashaffer/gulp-inline/issues/14/events","html_url":"https://github.com/ashaffer/gulp-inline/issues/14","id":64270604,"number":14,"title":"Duplicate CSS","user":{"login":"jvdub","id":7537482,"avatar_url":"https://avatars.githubusercontent.com/u/7537482?v=3","gravatar_id":"","url":"https://api.github.com/users/jvdub","html_url":"https://github.com/jvdub","followers_url":"https://api.github.com/users/jvdub/followers","following_url":"https://api.github.com/users/jvdub/following{/other_user}","gists_url":"https://api.github.com/users/jvdub/gists{/gist_id}","starred_url":"https://api.github.com/users/jvdub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvdub/subscriptions","organizations_url":"https://api.github.com/users/jvdub/orgs","repos_url":"https://api.github.com/users/jvdub/repos","events_url":"https://api.github.com/users/jvdub/events{/privacy}","received_events_url":"https://api.github.com/users/jvdub/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-25T13:38:19Z","updated_at":"2015-03-30T21:31:07Z","closed_at":null,"body":"When inlining multiple CSS files, one of them gets duplicated for all of them.\r\n\r\ngulpfile:\r\n```javascript\r\ngulp.task('inline', function () {\r\n\treturn gulp.src('src/test.html')\r\n\t\t.pipe(inline({\r\n\t\t\tbase: 'src/',\r\n\t\t\tcss: minifyCss()\r\n\t\t}))\r\n\t\t.pipe(gulp.dest(paths.dest));\r\n});\r\n```\r\ntest.html:\r\n```html\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"css/default.css\" />\r\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"css/print.css\" media=\"print\" />\r\n    <!-- ... -->\r\n</head>\r\n<body>\r\n    <!-- ... -->\r\n</body>\r\n```\r\ndefault.css\r\n```css\r\n.showOnPrint {\r\n    display: none;\r\n}\r\n```\r\nprint.css\r\n```css\r\n.showOnPrint {\r\n    display: block;\r\n}\r\n```\r\noutput\r\n```html\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n    <style>\r\n    .showOnPrint {display: block;}\r\n    </style>\r\n    <style>\r\n    .showOnPrint {display: block;}\r\n    </style>\r\n    <!-- ... -->\r\n</head>\r\n<body>\r\n    <!-- ... -->\r\n</body>\r\n```\r\n\r\nIt consistently duplicates one of the files, but it's not consistent in which one it duplicates. I imagine this issue is similar to Issue #7 just for CSS."},"comment":{"url":"https://api.github.com/repos/ashaffer/gulp-inline/issues/comments/87836954","html_url":"https://github.com/ashaffer/gulp-inline/issues/14#issuecomment-87836954","issue_url":"https://api.github.com/repos/ashaffer/gulp-inline/issues/14","id":87836954,"user":{"login":"ashaffer","id":1871136,"avatar_url":"https://avatars.githubusercontent.com/u/1871136?v=3","gravatar_id":"","url":"https://api.github.com/users/ashaffer","html_url":"https://github.com/ashaffer","followers_url":"https://api.github.com/users/ashaffer/followers","following_url":"https://api.github.com/users/ashaffer/following{/other_user}","gists_url":"https://api.github.com/users/ashaffer/gists{/gist_id}","starred_url":"https://api.github.com/users/ashaffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashaffer/subscriptions","organizations_url":"https://api.github.com/users/ashaffer/orgs","repos_url":"https://api.github.com/users/ashaffer/repos","events_url":"https://api.github.com/users/ashaffer/events{/privacy}","received_events_url":"https://api.github.com/users/ashaffer/received_events","type":"User","site_admin":false},"created_at":"2015-03-30T21:31:07Z","updated_at":"2015-03-30T21:31:07Z","body":"Hmm... not sure what's going on there.  I added some test fixtures copied from your post, and they seem to pass.  Can you elaborate or provide a failing test case?"}}