{"action":"created","issue":{"url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/887","repository_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter","labels_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/887/labels{/name}","comments_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/887/comments","events_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/887/events","html_url":"https://github.com/AngularClass/angular2-webpack-starter/issues/887","id":172670567,"number":887,"title":"Question : how to include css and images from another 'node_module' ?","user":{"login":"StefH","id":249938,"avatar_url":"https://avatars.githubusercontent.com/u/249938?v=3","gravatar_id":"","url":"https://api.github.com/users/StefH","html_url":"https://github.com/StefH","followers_url":"https://api.github.com/users/StefH/followers","following_url":"https://api.github.com/users/StefH/following{/other_user}","gists_url":"https://api.github.com/users/StefH/gists{/gist_id}","starred_url":"https://api.github.com/users/StefH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefH/subscriptions","organizations_url":"https://api.github.com/users/StefH/orgs","repos_url":"https://api.github.com/users/StefH/repos","events_url":"https://api.github.com/users/StefH/events{/privacy}","received_events_url":"https://api.github.com/users/StefH/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-23T11:01:50Z","updated_at":"2016-08-23T13:28:20Z","closed_at":null,"body":"**I'm submitting a ...**\r\n\r\n- [ ] bug report\r\n- [ ] feature request\r\n- [x] question about **webpack**\r\n\r\nI'm trying to add functionality from https://github.com/primefaces/primeng-quickstart-webpack into this project. However I'm stuck on how to include the css and images defined by primeng.\r\n\r\nIn the original project, the css's are added to the _index.html_ like this:\r\n\r\n```html\r\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"node_modules/primeui/themes/omega/theme.css\" />\r\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"app/resources/icons/css/font-awesome.min.css\" />\r\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"node_modules/primeui/primeui-ng-all.min.css\" />\r\n```\r\n\r\nBut I guess I need to use the https://www.npmjs.com/package/copy-webpack-plugin to make sure the css and images are copied to '**assets**'.\r\n\r\nI tried this code, however I cannot not get it to work, probably miss something.\r\n\r\n```js\r\nnew CopyWebpackPlugin([\r\n      {\r\n        from: 'src/assets',\r\n        to: 'assets'\r\n      },\r\n      {\r\n        from: 'node_modules/primeui/themes/omega/**/*',\r\n        to: 'assets'\r\n      },\r\n      {\r\n        from: 'node_modules/primeui/**/*.css',\r\n        to: 'assets'\r\n      }\r\n    ]),\r\n```\r\n\r\nCan you please help me ?"},"comment":{"url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/comments/241729988","html_url":"https://github.com/AngularClass/angular2-webpack-starter/issues/887#issuecomment-241729988","issue_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/887","id":241729988,"user":{"login":"StefH","id":249938,"avatar_url":"https://avatars.githubusercontent.com/u/249938?v=3","gravatar_id":"","url":"https://api.github.com/users/StefH","html_url":"https://github.com/StefH","followers_url":"https://api.github.com/users/StefH/followers","following_url":"https://api.github.com/users/StefH/following{/other_user}","gists_url":"https://api.github.com/users/StefH/gists{/gist_id}","starred_url":"https://api.github.com/users/StefH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefH/subscriptions","organizations_url":"https://api.github.com/users/StefH/orgs","repos_url":"https://api.github.com/users/StefH/repos","events_url":"https://api.github.com/users/StefH/events{/privacy}","received_events_url":"https://api.github.com/users/StefH/received_events","type":"User","site_admin":false},"created_at":"2016-08-23T13:28:20Z","updated_at":"2016-08-23T13:28:20Z","body":"Can someone from the team also comment on this?"}}
{"actor":{"display_login":"StefH"}}