{"action":"created","issue":{"url":"https://api.github.com/repos/andywer/webpack-blocks/issues/142","repository_url":"https://api.github.com/repos/andywer/webpack-blocks","labels_url":"https://api.github.com/repos/andywer/webpack-blocks/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/andywer/webpack-blocks/issues/142/comments","events_url":"https://api.github.com/repos/andywer/webpack-blocks/issues/142/events","html_url":"https://github.com/andywer/webpack-blocks/issues/142","id":221320797,"number":142,"title":"Sass Modules","user":{"login":"pakokrew","id":1371207,"avatar_url":"https://avatars1.githubusercontent.com/u/1371207?v=3","gravatar_id":"","url":"https://api.github.com/users/pakokrew","html_url":"https://github.com/pakokrew","followers_url":"https://api.github.com/users/pakokrew/followers","following_url":"https://api.github.com/users/pakokrew/following{/other_user}","gists_url":"https://api.github.com/users/pakokrew/gists{/gist_id}","starred_url":"https://api.github.com/users/pakokrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pakokrew/subscriptions","organizations_url":"https://api.github.com/users/pakokrew/orgs","repos_url":"https://api.github.com/users/pakokrew/repos","events_url":"https://api.github.com/users/pakokrew/events{/privacy}","received_events_url":"https://api.github.com/users/pakokrew/received_events","type":"User","site_admin":false},"labels":[{"id":450103185,"url":"https://api.github.com/repos/andywer/webpack-blocks/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2017-04-12T16:34:11Z","updated_at":"2017-06-24T17:43:35Z","closed_at":null,"body":"Webpack blocks allow to use both global **SASS** and **CSS** modules, but we cannot use **SASS modules**.\r\n\r\nWe should either create a `sassModule` block, or add to `cssModule` the ability to load `x-sass` files and add `sass-loader`\r\n\r\nI managed to use sass modules by merging css modules and sass configs :\r\n```\r\n{\r\n    module:\r\n      {\r\n        loaders: [\r\n          {\r\n            test: context.fileType('text/x-sass'),\r\n            loaders: [\r\n              'style-loader',\r\n              'css-loader?importLoaders=1&localIdentName=[name]--[local]--[hash:base64:5]&modules',\r\n              'sass-loader',\r\n            ]\r\n          }\r\n        ]\r\n      }\r\n  }\r\n ```"},"comment":{"url":"https://api.github.com/repos/andywer/webpack-blocks/issues/comments/310853207","html_url":"https://github.com/andywer/webpack-blocks/issues/142#issuecomment-310853207","issue_url":"https://api.github.com/repos/andywer/webpack-blocks/issues/142","id":310853207,"user":{"login":"andywer","id":1842462,"avatar_url":"https://avatars3.githubusercontent.com/u/1842462?v=3","gravatar_id":"","url":"https://api.github.com/users/andywer","html_url":"https://github.com/andywer","followers_url":"https://api.github.com/users/andywer/followers","following_url":"https://api.github.com/users/andywer/following{/other_user}","gists_url":"https://api.github.com/users/andywer/gists{/gist_id}","starred_url":"https://api.github.com/users/andywer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andywer/subscriptions","organizations_url":"https://api.github.com/users/andywer/orgs","repos_url":"https://api.github.com/users/andywer/repos","events_url":"https://api.github.com/users/andywer/events{/privacy}","received_events_url":"https://api.github.com/users/andywer/received_events","type":"User","site_admin":false},"created_at":"2017-06-24T17:43:35Z","updated_at":"2017-06-24T17:43:35Z","body":"Also be aware that `match()` is a 1.0 feature and there is no more `webpack-blocks/webpack2` in 1.0. There is only `webpack-blocks/webpack` in 1.0 which targets webpack 2+.\r\n\r\nBut it makes sense just to stick to the new convenience `webpack-blocks` package that wraps all the most common packages 😉"}}
{"actor":{"display_login":"andywer"}}