{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/css-loader/issues/149","labels_url":"https://api.github.com/repos/webpack/css-loader/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/webpack/css-loader/issues/149/comments","events_url":"https://api.github.com/repos/webpack/css-loader/issues/149/events","html_url":"https://github.com/webpack/css-loader/pull/149","id":108508911,"number":149,"title":"Added camelCase option","user":{"login":"nkt","id":3505878,"avatar_url":"https://avatars.githubusercontent.com/u/3505878?v=3","gravatar_id":"","url":"https://api.github.com/users/nkt","html_url":"https://github.com/nkt","followers_url":"https://api.github.com/users/nkt/followers","following_url":"https://api.github.com/users/nkt/following{/other_user}","gists_url":"https://api.github.com/users/nkt/gists{/gist_id}","starred_url":"https://api.github.com/users/nkt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkt/subscriptions","organizations_url":"https://api.github.com/users/nkt/orgs","repos_url":"https://api.github.com/users/nkt/repos","events_url":"https://api.github.com/users/nkt/events{/privacy}","received_events_url":"https://api.github.com/users/nkt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2015-09-27T02:30:23Z","updated_at":"2015-10-22T06:54:45Z","closed_at":"2015-10-19T12:58:21Z","pull_request":{"url":"https://api.github.com/repos/webpack/css-loader/pulls/149","html_url":"https://github.com/webpack/css-loader/pull/149","diff_url":"https://github.com/webpack/css-loader/pull/149.diff","patch_url":"https://github.com/webpack/css-loader/pull/149.patch"},"body":"This patch helps developers use `css-modules` with external libraries, like bootstrap. Popular css frameworks use *kebab-case* (bootstrap, foundation), or maybe other, like *snake_case*. We can resolve this problem if would automatically convert them to *camelCase*.\r\n```css\r\n/* styles.css */\r\n.btn-info {\r\n  color: blue;\r\n}\r\n```\r\n```js\r\n// app.js\r\nconst styles = require('!css?modules&camelCase!./styles.css');\r\n\r\nconsole.log(styles.btnInfo) // _38r5hlPyrqKLodJwWOdM1k\r\nconsole.log(styles['btn-info']) // undefined\r\n```"},"comment":{"url":"https://api.github.com/repos/webpack/css-loader/issues/comments/150124817","html_url":"https://github.com/webpack/css-loader/pull/149#issuecomment-150124817","issue_url":"https://api.github.com/repos/webpack/css-loader/issues/149","id":150124817,"user":{"login":"sokra","id":1365881,"avatar_url":"https://avatars.githubusercontent.com/u/1365881?v=3","gravatar_id":"","url":"https://api.github.com/users/sokra","html_url":"https://github.com/sokra","followers_url":"https://api.github.com/users/sokra/followers","following_url":"https://api.github.com/users/sokra/following{/other_user}","gists_url":"https://api.github.com/users/sokra/gists{/gist_id}","starred_url":"https://api.github.com/users/sokra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sokra/subscriptions","organizations_url":"https://api.github.com/users/sokra/orgs","repos_url":"https://api.github.com/users/sokra/repos","events_url":"https://api.github.com/users/sokra/events{/privacy}","received_events_url":"https://api.github.com/users/sokra/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T06:54:45Z","updated_at":"2015-10-22T06:54:45Z","body":"Just don't use BEM when using CSS Modules. That makes no sense. Instead of `menu-item_disabled` use `disabled`. You don't need namespacing in your class names, it's namespaced by the file."}}