{"action":"created","issue":{"url":"https://api.github.com/repos/Yomguithereal/kotatsu/issues/120","repository_url":"https://api.github.com/repos/Yomguithereal/kotatsu","labels_url":"https://api.github.com/repos/Yomguithereal/kotatsu/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/Yomguithereal/kotatsu/issues/120/comments","events_url":"https://api.github.com/repos/Yomguithereal/kotatsu/issues/120/events","html_url":"https://github.com/Yomguithereal/kotatsu/issues/120","id":140288355,"number":120,"title":"Kotatsu should return a non 0 exit status when the build fails","user":{"login":"SeeThruHead","id":8273939,"avatar_url":"https://avatars.githubusercontent.com/u/8273939?v=3","gravatar_id":"","url":"https://api.github.com/users/SeeThruHead","html_url":"https://github.com/SeeThruHead","followers_url":"https://api.github.com/users/SeeThruHead/followers","following_url":"https://api.github.com/users/SeeThruHead/following{/other_user}","gists_url":"https://api.github.com/users/SeeThruHead/gists{/gist_id}","starred_url":"https://api.github.com/users/SeeThruHead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeeThruHead/subscriptions","organizations_url":"https://api.github.com/users/SeeThruHead/orgs","repos_url":"https://api.github.com/users/SeeThruHead/repos","events_url":"https://api.github.com/users/SeeThruHead/events{/privacy}","received_events_url":"https://api.github.com/users/SeeThruHead/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-11T20:50:14Z","updated_at":"2016-03-11T21:55:43Z","closed_at":null,"body":"I've come across an interesting dilemma. Kotatsu isn't failing when it doesn't find a module.\r\nExample:\r\n```\r\n ~/C/i/thinky-fe   master ±  npm run build; echo $status\r\n\r\n> thinky-frontend@0.0.1-rc1 build /Users/dev/Code/infl/thinky-fe\r\n> rm -rf build && NODE_ENV=production kotatsu -c webpack.config.js -s false --babel build client\r\n\r\n[kotatsu] (v0.12.1)\r\n[kotatsu] Compiling...\r\n[kotatsu] ./src/card-list/components/card-list.js\r\nModule not found: Error: Cannot resolve module 'thinky-card' in /Users/dev/Code/infl/thinky-fe/src/card-list/components\r\n...\r\n @ ./src/card-list/components/card-list.js 11:18-40\r\n0 <--- huh?\r\n ~/C/i/thinky-fe   master ±  la build\r\ntotal 408\r\ndrwxr-xr-x   5 dev  staff   170B 11 Mar 15:46 .\r\ndrwxr-xr-x  21 dev  staff   714B 11 Mar 15:46 ..\r\n-rw-r--r--   1 dev  staff    84K 11 Mar 15:46 main.3c003bd50448683099d2.js\r\n-rw-r--r--   1 dev  staff    96B 11 Mar 15:46 manifest.json\r\n-rw-r--r--   1 dev  staff   112K 11 Mar 15:46 vendor.a23e6144a5995509ddac.js\r\n```\r\n\r\nIt even builds some of the files\r\n\r\nis this intended?"},"comment":{"url":"https://api.github.com/repos/Yomguithereal/kotatsu/issues/comments/195569256","html_url":"https://github.com/Yomguithereal/kotatsu/issues/120#issuecomment-195569256","issue_url":"https://api.github.com/repos/Yomguithereal/kotatsu/issues/120","id":195569256,"user":{"login":"Yomguithereal","id":2571951,"avatar_url":"https://avatars.githubusercontent.com/u/2571951?v=3","gravatar_id":"","url":"https://api.github.com/users/Yomguithereal","html_url":"https://github.com/Yomguithereal","followers_url":"https://api.github.com/users/Yomguithereal/followers","following_url":"https://api.github.com/users/Yomguithereal/following{/other_user}","gists_url":"https://api.github.com/users/Yomguithereal/gists{/gist_id}","starred_url":"https://api.github.com/users/Yomguithereal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yomguithereal/subscriptions","organizations_url":"https://api.github.com/users/Yomguithereal/orgs","repos_url":"https://api.github.com/users/Yomguithereal/repos","events_url":"https://api.github.com/users/Yomguithereal/events{/privacy}","received_events_url":"https://api.github.com/users/Yomguithereal/received_events","type":"User","site_admin":false},"created_at":"2016-03-11T21:55:43Z","updated_at":"2016-03-11T21:55:43Z","body":"No it's not normal. But I wonder whether webpack works like this also or not. Anyway, I should probably detect this case and exit on a 1."}}