{"action":"created","issue":{"url":"https://api.github.com/repos/shakacode/bootstrap-loader/issues/98","repository_url":"https://api.github.com/repos/shakacode/bootstrap-loader","labels_url":"https://api.github.com/repos/shakacode/bootstrap-loader/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/shakacode/bootstrap-loader/issues/98/comments","events_url":"https://api.github.com/repos/shakacode/bootstrap-loader/issues/98/events","html_url":"https://github.com/shakacode/bootstrap-loader/pull/98","id":165057058,"number":98,"title":"Added module.exports for required files, exposing inner functions","user":{"login":"horyd","id":916414,"avatar_url":"https://avatars.githubusercontent.com/u/916414?v=3","gravatar_id":"","url":"https://api.github.com/users/horyd","html_url":"https://github.com/horyd","followers_url":"https://api.github.com/users/horyd/followers","following_url":"https://api.github.com/users/horyd/following{/other_user}","gists_url":"https://api.github.com/users/horyd/gists{/gist_id}","starred_url":"https://api.github.com/users/horyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/horyd/subscriptions","organizations_url":"https://api.github.com/users/horyd/orgs","repos_url":"https://api.github.com/users/horyd/repos","events_url":"https://api.github.com/users/horyd/events{/privacy}","received_events_url":"https://api.github.com/users/horyd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/shakacode/bootstrap-loader/labels/waiting%20on%20reporter","name":"waiting on reporter","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-12T11:32:33Z","updated_at":"2016-07-28T09:03:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/shakacode/bootstrap-loader/pulls/98","html_url":"https://github.com/shakacode/bootstrap-loader/pull/98","diff_url":"https://github.com/shakacode/bootstrap-loader/pull/98.diff","patch_url":"https://github.com/shakacode/bootstrap-loader/pull/98.patch"},"body":"Hi guys. I've put this together rather quickly, so apologies if it's a bit hack-ish. I came to needing to do this as I use https://github.com/kriasoft/isomorphic-style-loader for handling CSS on the server, which I explicitly set within a ```<style>``` tag inside a root ```Html``` React component when rendering from the server.\r\n\r\nThe isomorphic-style-loader adds a number of exports to the required CSS file, the one I was after namely being ```_getCss()```. However with the bootstrap-loader it was trapped within other ```require```s, alongside the Bootstrap JS for example (if any was set to be included within ```.bootstraprc```.\r\n\r\n[This issue](https://github.com/shakacode/bootstrap-loader/issues/10) explains it quite well, and the final solution is very similar to what @halt-hammerzeit mentioned.\r\n\r\nOnce again, just put this together quickly, let me know thoughts/direction/what more I can do :)\r\n\r\n<!-- Reviewable:start -->\r\n---\r\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/shakacode/bootstrap-loader/98)\r\n<!-- Reviewable:end -->\r\n"},"comment":{"url":"https://api.github.com/repos/shakacode/bootstrap-loader/issues/comments/235840025","html_url":"https://github.com/shakacode/bootstrap-loader/pull/98#issuecomment-235840025","issue_url":"https://api.github.com/repos/shakacode/bootstrap-loader/issues/98","id":235840025,"user":{"login":"horyd","id":916414,"avatar_url":"https://avatars.githubusercontent.com/u/916414?v=3","gravatar_id":"","url":"https://api.github.com/users/horyd","html_url":"https://github.com/horyd","followers_url":"https://api.github.com/users/horyd/followers","following_url":"https://api.github.com/users/horyd/following{/other_user}","gists_url":"https://api.github.com/users/horyd/gists{/gist_id}","starred_url":"https://api.github.com/users/horyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/horyd/subscriptions","organizations_url":"https://api.github.com/users/horyd/orgs","repos_url":"https://api.github.com/users/horyd/repos","events_url":"https://api.github.com/users/horyd/events{/privacy}","received_events_url":"https://api.github.com/users/horyd/received_events","type":"User","site_admin":false},"created_at":"2016-07-28T09:03:15Z","updated_at":"2016-07-28T09:03:15Z","body":"Hey @justin808, sorry I was on vacation, but am back now. Let me see what I can put together. I noticed there is no testing framework set up in the repo? Shall I put one in?"}}
{"actor":{"display_login":"horyd"}}