{"action":"created","issue":{"url":"https://api.github.com/repos/jonathantneal/postcss-partial-import/issues/28","repository_url":"https://api.github.com/repos/jonathantneal/postcss-partial-import","labels_url":"https://api.github.com/repos/jonathantneal/postcss-partial-import/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/jonathantneal/postcss-partial-import/issues/28/comments","events_url":"https://api.github.com/repos/jonathantneal/postcss-partial-import/issues/28/events","html_url":"https://github.com/jonathantneal/postcss-partial-import/issues/28","id":182262644,"number":28,"title":"Duplicated import","user":{"login":"maciekpaprocki","id":1101944,"avatar_url":"https://avatars.githubusercontent.com/u/1101944?v=3","gravatar_id":"","url":"https://api.github.com/users/maciekpaprocki","html_url":"https://github.com/maciekpaprocki","followers_url":"https://api.github.com/users/maciekpaprocki/followers","following_url":"https://api.github.com/users/maciekpaprocki/following{/other_user}","gists_url":"https://api.github.com/users/maciekpaprocki/gists{/gist_id}","starred_url":"https://api.github.com/users/maciekpaprocki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maciekpaprocki/subscriptions","organizations_url":"https://api.github.com/users/maciekpaprocki/orgs","repos_url":"https://api.github.com/users/maciekpaprocki/repos","events_url":"https://api.github.com/users/maciekpaprocki/events{/privacy}","received_events_url":"https://api.github.com/users/maciekpaprocki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-11T13:23:42Z","updated_at":"2016-11-03T08:25:01Z","closed_at":null,"body":"I think it would be good to have option to ignore all next imports of this same file. It might change current behaviour, however in CSS if you are including twice this same file your are probably doing something wrong as size of the file might increase drastically. Example:\n\n**module1.css requires css library:**\n\n``` css\n@import 'somelibrary';\n.Module1{\n   something:something;\n}\n```\n\n**module2.css requires also css library**\n\n``` css\n@import 'somelibrary';\n.Module2{\n   something:something;\n}\n```\n\n**index.css require module1 and module2, but shouldn't care about some library.** \n\n``` css\n@import 'module1';\n@import 'module2';\n```\n\nI could work on PR for that. \n\nGood option would be to allow some force option like `@import 'somefile' !important;` which will force re-adding file, as well as extra check if this same text wasn't included from different path. like for example  if reset.css is not included twice from local and from node_modules. \n"},"comment":{"url":"https://api.github.com/repos/jonathantneal/postcss-partial-import/issues/comments/258085104","html_url":"https://github.com/jonathantneal/postcss-partial-import/issues/28#issuecomment-258085104","issue_url":"https://api.github.com/repos/jonathantneal/postcss-partial-import/issues/28","id":258085104,"user":{"login":"atstek","id":8067557,"avatar_url":"https://avatars.githubusercontent.com/u/8067557?v=3","gravatar_id":"","url":"https://api.github.com/users/atstek","html_url":"https://github.com/atstek","followers_url":"https://api.github.com/users/atstek/followers","following_url":"https://api.github.com/users/atstek/following{/other_user}","gists_url":"https://api.github.com/users/atstek/gists{/gist_id}","starred_url":"https://api.github.com/users/atstek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atstek/subscriptions","organizations_url":"https://api.github.com/users/atstek/orgs","repos_url":"https://api.github.com/users/atstek/repos","events_url":"https://api.github.com/users/atstek/events{/privacy}","received_events_url":"https://api.github.com/users/atstek/received_events","type":"User","site_admin":false},"created_at":"2016-11-03T08:25:01Z","updated_at":"2016-11-03T08:25:01Z","body":"Thus, the results will be more predictable in my opinion. Since such duplicates can affect the priority of rules. I am referring to this aspect of [spec](https://www.w3.org/TR/2011/REC-CSS2-20110607/cascade.html#cascading-order)\r\n\r\n> Finally, sort by order specified: if two declarations have the same weight, origin and specificity, the latter specified wins."}}
{"actor":{"display_login":"atstek"}}