{"action":"created","issue":{"url":"https://api.github.com/repos/yeoman/generator-angular/issues/1169","labels_url":"https://api.github.com/repos/yeoman/generator-angular/issues/1169/labels{/name}","comments_url":"https://api.github.com/repos/yeoman/generator-angular/issues/1169/comments","events_url":"https://api.github.com/repos/yeoman/generator-angular/issues/1169/events","html_url":"https://github.com/yeoman/generator-angular/issues/1169","id":102519057,"number":1169,"title":"A typo failing grunt build for a generated project","user":{"login":"Ahimta","id":3470403,"avatar_url":"https://avatars.githubusercontent.com/u/3470403?v=3","gravatar_id":"","url":"https://api.github.com/users/Ahimta","html_url":"https://github.com/Ahimta","followers_url":"https://api.github.com/users/Ahimta/followers","following_url":"https://api.github.com/users/Ahimta/following{/other_user}","gists_url":"https://api.github.com/users/Ahimta/gists{/gist_id}","starred_url":"https://api.github.com/users/Ahimta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ahimta/subscriptions","organizations_url":"https://api.github.com/users/Ahimta/orgs","repos_url":"https://api.github.com/users/Ahimta/repos","events_url":"https://api.github.com/users/Ahimta/events{/privacy}","received_events_url":"https://api.github.com/users/Ahimta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-22T09:04:02Z","updated_at":"2015-08-22T18:25:50Z","closed_at":null,"body":"I'm not really sure but for some reason my build (grunt build) failed with an error message:\r\n\r\n\"Warning: Cannot find module '/home/abdullah/Documents/abdulwahed-alansari-frontend/node_modules/grunt-usemin/lib/config/uglifyjs' Use --force to continue.\"\r\n\r\nI looked into it and noticed that \"node_modules/grunt-usemin/lib/config/\" includes:\r\n1. concat.js\r\n2. cssmin.js\r\n3. requirejs.js\r\n4. uglify.js\r\n\r\nSo i took a look at my Gruntfile.js and found something very similar to this [line](https://github.com/yeoman/generator-angular/blob/09d90f4486d12e0ef4d9283983329d171749297a/templates/common/root/_Gruntfile.js#L372).\r\n\r\nI changed \"uglifyjs\" to \"uglify\" and everything worked just fine.\r\nYou can find my project here: https://github.com/Ahimta/abdulwahed-alansari-frontend/tree/14718835763c36794c0e7ecf4574fc693c94dbfe\r\n\r\nI think it wouldn't be unreasonable to fail \"grunt test\" if \"grunt build\" could fail and maybe do the same thing for \"grunt serve\""},"comment":{"url":"https://api.github.com/repos/yeoman/generator-angular/issues/comments/133737411","html_url":"https://github.com/yeoman/generator-angular/issues/1169#issuecomment-133737411","issue_url":"https://api.github.com/repos/yeoman/generator-angular/issues/1169","id":133737411,"user":{"login":"arthurvr","id":6025224,"avatar_url":"https://avatars.githubusercontent.com/u/6025224?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurvr","html_url":"https://github.com/arthurvr","followers_url":"https://api.github.com/users/arthurvr/followers","following_url":"https://api.github.com/users/arthurvr/following{/other_user}","gists_url":"https://api.github.com/users/arthurvr/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurvr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurvr/subscriptions","organizations_url":"https://api.github.com/users/arthurvr/orgs","repos_url":"https://api.github.com/users/arthurvr/repos","events_url":"https://api.github.com/users/arthurvr/events{/privacy}","received_events_url":"https://api.github.com/users/arthurvr/received_events","type":"User","site_admin":false},"created_at":"2015-08-22T18:25:50Z","updated_at":"2015-08-22T18:25:50Z","body":"https://github.com/yeoman/grunt-usemin/issues/591 - grunt-usemin accidentally released with a breaking change. Should be fixed soon. Sorry for the troubles you're having."}}