{"action":"created","issue":{"url":"https://api.github.com/repos/blacksonic/angular2-aot-webpack/issues/24","repository_url":"https://api.github.com/repos/blacksonic/angular2-aot-webpack","labels_url":"https://api.github.com/repos/blacksonic/angular2-aot-webpack/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/blacksonic/angular2-aot-webpack/issues/24/comments","events_url":"https://api.github.com/repos/blacksonic/angular2-aot-webpack/issues/24/events","html_url":"https://github.com/blacksonic/angular2-aot-webpack/issues/24","id":186245209,"number":24,"title":"Unable to load CSS in component","user":{"login":"KirilNN","id":4188451,"avatar_url":"https://avatars.githubusercontent.com/u/4188451?v=3","gravatar_id":"","url":"https://api.github.com/users/KirilNN","html_url":"https://github.com/KirilNN","followers_url":"https://api.github.com/users/KirilNN/followers","following_url":"https://api.github.com/users/KirilNN/following{/other_user}","gists_url":"https://api.github.com/users/KirilNN/gists{/gist_id}","starred_url":"https://api.github.com/users/KirilNN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KirilNN/subscriptions","organizations_url":"https://api.github.com/users/KirilNN/orgs","repos_url":"https://api.github.com/users/KirilNN/repos","events_url":"https://api.github.com/users/KirilNN/events{/privacy}","received_events_url":"https://api.github.com/users/KirilNN/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-31T10:02:19Z","updated_at":"2016-11-04T07:50:49Z","closed_at":null,"body":"We are trying to load a CSS file into the HelloWorld component using:\r\n\r\n    @Component({\r\n      selector: 'hello-world-app',\r\n      templateUrl: 'hello-world.template.html',\r\n      styleUrls: ['hello.css'],\r\n      encapsulation: ViewEncapsulation.None\r\n    })\r\n\r\nthis throws with `You may need an appropriate loader to handle this file type.`\r\n\r\nTried adding `css-loader` and `style-loader` in the `webpack.config.js` file:\r\n\r\n    { test: /\\.css$/, use: [\"style-loader\", \"css-loader\"]},\r\n\r\nbut this triggers an Angular exception `Cannot read property 'replace' of undefined`. \r\n\r\nAny help will be appreciated!"},"comment":{"url":"https://api.github.com/repos/blacksonic/angular2-aot-webpack/issues/comments/258364502","html_url":"https://github.com/blacksonic/angular2-aot-webpack/issues/24#issuecomment-258364502","issue_url":"https://api.github.com/repos/blacksonic/angular2-aot-webpack/issues/24","id":258364502,"user":{"login":"blacksonic","id":602571,"avatar_url":"https://avatars.githubusercontent.com/u/602571?v=3","gravatar_id":"","url":"https://api.github.com/users/blacksonic","html_url":"https://github.com/blacksonic","followers_url":"https://api.github.com/users/blacksonic/followers","following_url":"https://api.github.com/users/blacksonic/following{/other_user}","gists_url":"https://api.github.com/users/blacksonic/gists{/gist_id}","starred_url":"https://api.github.com/users/blacksonic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blacksonic/subscriptions","organizations_url":"https://api.github.com/users/blacksonic/orgs","repos_url":"https://api.github.com/users/blacksonic/repos","events_url":"https://api.github.com/users/blacksonic/events{/privacy}","received_events_url":"https://api.github.com/users/blacksonic/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T07:50:49Z","updated_at":"2016-11-04T07:50:49Z","body":"@KirilNN Added support for global styles. I dont think that using ViewEncapsulation.None for global styles is a good practice. Rather require them in a separate file like now in the examples polyfill.ts."}}
{"actor":{"display_login":"blacksonic"}}