{"action":"opened","issue":{"url":"https://api.github.com/repos/css-modules/css-modulesify/issues/22","labels_url":"https://api.github.com/repos/css-modules/css-modulesify/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/css-modules/css-modulesify/issues/22/comments","events_url":"https://api.github.com/repos/css-modules/css-modulesify/issues/22/events","html_url":"https://github.com/css-modules/css-modulesify/issues/22","id":95959971,"number":22,"title":"File name conflicts","user":{"login":"thejameskyle","id":952783,"avatar_url":"https://avatars.githubusercontent.com/u/952783?v=3","gravatar_id":"","url":"https://api.github.com/users/thejameskyle","html_url":"https://github.com/thejameskyle","followers_url":"https://api.github.com/users/thejameskyle/followers","following_url":"https://api.github.com/users/thejameskyle/following{/other_user}","gists_url":"https://api.github.com/users/thejameskyle/gists{/gist_id}","starred_url":"https://api.github.com/users/thejameskyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thejameskyle/subscriptions","organizations_url":"https://api.github.com/users/thejameskyle/orgs","repos_url":"https://api.github.com/users/thejameskyle/repos","events_url":"https://api.github.com/users/thejameskyle/events{/privacy}","received_events_url":"https://api.github.com/users/thejameskyle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-19T23:56:37Z","updated_at":"2015-07-19T23:56:37Z","closed_at":null,"body":"Since css-modulesify only looks at the current file name it can easily run into conflicts with nested directories\r\n\r\n**Input**\r\n\r\n```css\r\n/* /component-a/component.css */\r\n.input {\r\n  /* ... */\r\n}\r\n```\r\n\r\n```css\r\n/* /component-b/component.css */\r\n.input {\r\n  /* ... */\r\n}\r\n```\r\n\r\n**Output**\r\n\r\n```css\r\n._component__input {\r\n  /* ... */\r\n}\r\n\r\n._component__input {\r\n  /* ... */\r\n}\r\n```"}}