{"action":"created","issue":{"url":"https://api.github.com/repos/KleeGroup/focus-components/issues/564","labels_url":"https://api.github.com/repos/KleeGroup/focus-components/issues/564/labels{/name}","comments_url":"https://api.github.com/repos/KleeGroup/focus-components/issues/564/comments","events_url":"https://api.github.com/repos/KleeGroup/focus-components/issues/564/events","html_url":"https://github.com/KleeGroup/focus-components/issues/564","id":111774344,"number":564,"title":"npm package and webpack aren't compatible because style files","user":{"login":"fconstantin","id":5754294,"avatar_url":"https://avatars.githubusercontent.com/u/5754294?v=3","gravatar_id":"","url":"https://api.github.com/users/fconstantin","html_url":"https://github.com/fconstantin","followers_url":"https://api.github.com/users/fconstantin/followers","following_url":"https://api.github.com/users/fconstantin/following{/other_user}","gists_url":"https://api.github.com/users/fconstantin/gists{/gist_id}","starred_url":"https://api.github.com/users/fconstantin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fconstantin/subscriptions","organizations_url":"https://api.github.com/users/fconstantin/orgs","repos_url":"https://api.github.com/users/fconstantin/repos","events_url":"https://api.github.com/users/fconstantin/events{/privacy}","received_events_url":"https://api.github.com/users/fconstantin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/KleeGroup/focus-components/milestones/8","html_url":"https://github.com/KleeGroup/focus-components/milestones/Focus%20Components%20v0.7.3","labels_url":"https://api.github.com/repos/KleeGroup/focus-components/milestones/8/labels","id":1355681,"number":8,"title":"Focus Components v0.7.3","description":"","creator":{"login":"Tommass","id":5349745,"avatar_url":"https://avatars.githubusercontent.com/u/5349745?v=3","gravatar_id":"","url":"https://api.github.com/users/Tommass","html_url":"https://github.com/Tommass","followers_url":"https://api.github.com/users/Tommass/followers","following_url":"https://api.github.com/users/Tommass/following{/other_user}","gists_url":"https://api.github.com/users/Tommass/gists{/gist_id}","starred_url":"https://api.github.com/users/Tommass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tommass/subscriptions","organizations_url":"https://api.github.com/users/Tommass/orgs","repos_url":"https://api.github.com/users/Tommass/repos","events_url":"https://api.github.com/users/Tommass/events{/privacy}","received_events_url":"https://api.github.com/users/Tommass/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":3,"state":"open","created_at":"2015-10-14T16:05:44Z","updated_at":"2015-10-16T07:28:39Z","due_on":"2015-10-20T22:00:00Z","closed_at":null},"comments":1,"created_at":"2015-10-16T07:11:21Z","updated_at":"2015-10-16T07:33:17Z","closed_at":null,"body":"When webpack is used, to build an application, the following errors occurs :\r\n\r\nERROR in ./~/focus-components/lib/style/index.js\r\nModule not found: Error: Cannot resolve 'file' or 'directory' ../application/bar/style/bar.scss in xxxxx.SPA\\node_modules\\focus-components\\lib\\style\r\n @ ./~/focus-components/lib/style/index.js 3:0-44\r\n\r\nERROR in ./~/focus-components/lib/style/index.js\r\nModule not found: Error: Cannot resolve 'file' or 'directory' ../application/cartridge/style/cartridge.scss in xxxxx.SPA\\node_modules\\focus-components\\lib\\style\r\n @ ./~/focus-components/lib/style/index.js 5:0-56\r\n\r\nAnd many others.\r\n\r\nThe following script can be run from the node_modules/focus-components/src/style/ directory to temporarily fix the problem :\r\n \r\n[focus-component-style.txt](https://github.com/KleeGroup/focus-components/files/14744/focus-component-style.txt)\r\n"},"comment":{"url":"https://api.github.com/repos/KleeGroup/focus-components/issues/comments/148637625","html_url":"https://github.com/KleeGroup/focus-components/issues/564#issuecomment-148637625","issue_url":"https://api.github.com/repos/KleeGroup/focus-components/issues/564","id":148637625,"user":{"login":"pierr","id":286966,"avatar_url":"https://avatars.githubusercontent.com/u/286966?v=3","gravatar_id":"","url":"https://api.github.com/users/pierr","html_url":"https://github.com/pierr","followers_url":"https://api.github.com/users/pierr/followers","following_url":"https://api.github.com/users/pierr/following{/other_user}","gists_url":"https://api.github.com/users/pierr/gists{/gist_id}","starred_url":"https://api.github.com/users/pierr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierr/subscriptions","organizations_url":"https://api.github.com/users/pierr/orgs","repos_url":"https://api.github.com/users/pierr/repos","events_url":"https://api.github.com/users/pierr/events{/privacy}","received_events_url":"https://api.github.com/users/pierr/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T07:33:17Z","updated_at":"2015-10-16T07:33:17Z","body":"We will fix it soon:\r\n- You can link to css file in dist instead of reading the style file.\r\n- Use `webpack` `alias` option such as in https://github.com/KleeGroup/focus-showcase/blob/develop/webpack.config.builder.js#L18 in order to link to src directory instead of lib directory in the node module "}}