{"action":"created","issue":{"url":"https://api.github.com/repos/skidding/cosmos/issues/135","labels_url":"https://api.github.com/repos/skidding/cosmos/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/skidding/cosmos/issues/135/comments","events_url":"https://api.github.com/repos/skidding/cosmos/issues/135/events","html_url":"https://github.com/skidding/cosmos/issues/135","id":83852875,"number":135,"title":"Hanging on `sass-loader`","user":{"login":"ksmth","id":1570868,"avatar_url":"https://avatars.githubusercontent.com/u/1570868?v=3","gravatar_id":"","url":"https://api.github.com/users/ksmth","html_url":"https://github.com/ksmth","followers_url":"https://api.github.com/users/ksmth/followers","following_url":"https://api.github.com/users/ksmth/following{/other_user}","gists_url":"https://api.github.com/users/ksmth/gists{/gist_id}","starred_url":"https://api.github.com/users/ksmth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksmth/subscriptions","organizations_url":"https://api.github.com/users/ksmth/orgs","repos_url":"https://api.github.com/users/ksmth/repos","events_url":"https://api.github.com/users/ksmth/events{/privacy}","received_events_url":"https://api.github.com/users/ksmth/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-02T05:39:01Z","updated_at":"2015-11-12T21:54:32Z","closed_at":"2015-11-12T21:54:32Z","body":"I'm trying to overload the loaders as follows:\r\n```\r\nmodule.exports.webpack = function (webpackConfig) {\r\n  webpackConfig.module.loaders = [\r\n    {\r\n      test   : /\\.scss$/,\r\n      loader : 'style!css?module&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!postcss!sass'\r\n    },\r\n    {\r\n      test    : /\\.jsx?$/,\r\n      loaders : [ 'react-hot', 'babel?stage=0&optional=runtime' ],\r\n      exclude : /node_modules/\r\n    },\r\n    {\r\n      test   : /\\.jpe?g$|\\.gif$|\\.png$|\\.svg$|\\.eot$|\\.woff$|\\.woff2$|\\.ttf$/,\r\n      loader : 'file'\r\n    },\r\n    { test: /\\.css$/,  loader: 'style-loader!css-loader' },\r\n    { test: /\\.less$/, loader: 'style-loader!css-loader!less-loader' }\r\n  ];\r\n\r\n  webpackConfig.postcss = [\r\n    require('autoprefixer-core')\r\n  ];\r\n  \r\n  return webpackConfig;\r\n};\r\n```\r\n\r\nWhen I comment out the `scss` loader part, it compiles, but will complain about `import styles from './stuff.scss';` statements or rather the contents of the file needing their own loader.\r\n\r\nI tried setting the `resolveLoader.root` to my own `node_modules` folder, tried installing the loaders inside `node_modules/cosmos-js`, but nothing worked, it's hanging in an infinite loop somehow.\r\n\r\n*Edit*\r\n\r\nReducing this further to:\r\n```\r\nmodule.exports.webpack = function (webpackConfig) {\r\n  webpackConfig.module.loaders.push({\r\n    test   : /\\.scss$/,\r\n    loader : 'style!css!sass'\r\n  });\r\n\r\n  return webpackConfig;\r\n};\r\n```"},"comment":{"url":"https://api.github.com/repos/skidding/cosmos/issues/comments/156247932","html_url":"https://github.com/skidding/cosmos/issues/135#issuecomment-156247932","issue_url":"https://api.github.com/repos/skidding/cosmos/issues/135","id":156247932,"user":{"login":"skidding","id":250750,"avatar_url":"https://avatars.githubusercontent.com/u/250750?v=3","gravatar_id":"","url":"https://api.github.com/users/skidding","html_url":"https://github.com/skidding","followers_url":"https://api.github.com/users/skidding/followers","following_url":"https://api.github.com/users/skidding/following{/other_user}","gists_url":"https://api.github.com/users/skidding/gists{/gist_id}","starred_url":"https://api.github.com/users/skidding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skidding/subscriptions","organizations_url":"https://api.github.com/users/skidding/orgs","repos_url":"https://api.github.com/users/skidding/repos","events_url":"https://api.github.com/users/skidding/events{/privacy}","received_events_url":"https://api.github.com/users/skidding/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T21:54:32Z","updated_at":"2015-11-12T21:54:32Z","body":"Cosmos is now a [boilerplate](https://github.com/skidding/cosmos/tree/master/webpack-boilerplate/react-0.13). You should be able to install any loaders you want now."}}