{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/css-loader/issues/97","labels_url":"https://api.github.com/repos/webpack/css-loader/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/webpack/css-loader/issues/97/comments","events_url":"https://api.github.com/repos/webpack/css-loader/issues/97/events","html_url":"https://github.com/webpack/css-loader/issues/97","id":94334632,"number":97,"title":"Local Scope with Less Loader","user":{"login":"LucaColonnello","id":536973,"avatar_url":"https://avatars.githubusercontent.com/u/536973?v=3","gravatar_id":"","url":"https://api.github.com/users/LucaColonnello","html_url":"https://github.com/LucaColonnello","followers_url":"https://api.github.com/users/LucaColonnello/followers","following_url":"https://api.github.com/users/LucaColonnello/following{/other_user}","gists_url":"https://api.github.com/users/LucaColonnello/gists{/gist_id}","starred_url":"https://api.github.com/users/LucaColonnello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LucaColonnello/subscriptions","organizations_url":"https://api.github.com/users/LucaColonnello/orgs","repos_url":"https://api.github.com/users/LucaColonnello/repos","events_url":"https://api.github.com/users/LucaColonnello/events{/privacy}","received_events_url":"https://api.github.com/users/LucaColonnello/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-10T15:55:42Z","updated_at":"2015-07-10T17:22:04Z","closed_at":null,"body":"Hi,\r\nthe great functionality of local scopes, works with the less-loader?\r\nThere's a way to combine the two things?\r\n\r\nThanks in advice"},"comment":{"url":"https://api.github.com/repos/webpack/css-loader/issues/comments/120464661","html_url":"https://github.com/webpack/css-loader/issues/97#issuecomment-120464661","issue_url":"https://api.github.com/repos/webpack/css-loader/issues/97","id":120464661,"user":{"login":"cef62","id":129991,"avatar_url":"https://avatars.githubusercontent.com/u/129991?v=3","gravatar_id":"","url":"https://api.github.com/users/cef62","html_url":"https://github.com/cef62","followers_url":"https://api.github.com/users/cef62/followers","following_url":"https://api.github.com/users/cef62/following{/other_user}","gists_url":"https://api.github.com/users/cef62/gists{/gist_id}","starred_url":"https://api.github.com/users/cef62/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cef62/subscriptions","organizations_url":"https://api.github.com/users/cef62/orgs","repos_url":"https://api.github.com/users/cef62/repos","events_url":"https://api.github.com/users/cef62/events{/privacy}","received_events_url":"https://api.github.com/users/cef62/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T17:22:04Z","updated_at":"2015-07-10T17:22:04Z","body":"Hey @LucaColonnello  you can use less/sass with scoped css like you do with normal css. I was trying to solve a similar scenario today:\r\n\r\n```javascript\r\n\r\n// add to loaders\r\n{\r\n  test: /\\.css$/,\r\n  loader: ExtractTextPlugin.extract('style-loader', 'css-loader?module&localIdentName=css_[name]__[local]___[hash:base64:5]')\r\n},\r\n{\r\n  test: /\\.less/,\r\n  loader: ExtractTextPlugin.extract('style-loader', 'css-loader?module&localIdentName=less_[name]__[local]___[hash:base64:5]!less')\r\n}\r\n\r\n// register plugin\r\nplugins: [\r\n  new ExtractTextPlugin('style.css', { allChunks: true })\r\n]}\r\n```\r\n\r\nThis worked for me :)"}}