{"action":"created","issue":{"url":"https://api.github.com/repos/Kurtz1993/ionic-minify/issues/9","labels_url":"https://api.github.com/repos/Kurtz1993/ionic-minify/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/Kurtz1993/ionic-minify/issues/9/comments","events_url":"https://api.github.com/repos/Kurtz1993/ionic-minify/issues/9/events","html_url":"https://github.com/Kurtz1993/ionic-minify/issues/9","id":114474475,"number":9,"title":"TypeError: Cannot read property 'forEach' of undefined  ","user":{"login":"prosenjit-itobuz","id":11558810,"avatar_url":"https://avatars.githubusercontent.com/u/11558810?v=3","gravatar_id":"","url":"https://api.github.com/users/prosenjit-itobuz","html_url":"https://github.com/prosenjit-itobuz","followers_url":"https://api.github.com/users/prosenjit-itobuz/followers","following_url":"https://api.github.com/users/prosenjit-itobuz/following{/other_user}","gists_url":"https://api.github.com/users/prosenjit-itobuz/gists{/gist_id}","starred_url":"https://api.github.com/users/prosenjit-itobuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prosenjit-itobuz/subscriptions","organizations_url":"https://api.github.com/users/prosenjit-itobuz/orgs","repos_url":"https://api.github.com/users/prosenjit-itobuz/repos","events_url":"https://api.github.com/users/prosenjit-itobuz/events{/privacy}","received_events_url":"https://api.github.com/users/prosenjit-itobuz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-11-01T15:05:02Z","updated_at":"2015-11-16T15:41:39Z","closed_at":null,"body":"Another error\r\n\r\n`/Users/username/dev/appname/node_modules/uglify-js/tools/node.js:76\r\n        files.forEach(function(file){\r\n             ^\r\nTypeError: Cannot read property 'forEach' of undefined\r\n    at Object.exports.minify\r\n(/Users/username/dev/appname/node_modules/uglify-js/tools/node.js:76:14)\r\n    at compress\r\n(/Users/username/dev/appname/hooks/after_prepare/ionic-minify.js:63:29)\r\n    at\r\n/Users/username/dev/appname/hooks/after_prepare/ionic-minify.js:119:11\r\n    at FSReqWrap.oncomplete (fs.js:95:15)\r\nError: Hook failed with error code 1:\r\n/Users/username/dev/appname/hooks/after_prepare/ionic-minify.js\r\n    at\r\n/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:195:23\r\n    at _rejected\r\n(/usr/local/lib/node_modules/cordova/node_modules/q/q.js:797:24)\r\n    at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:823:30\r\n    at Promise.when\r\n(/usr/local/lib/node_modules/cordova/node_modules/q/q.js:1035:31)\r\n    at Promise.promise.promiseDispatch\r\n(/usr/local/lib/node_modules/cordova/node_modules/q/q.js:741:41)\r\n    at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:557:44\r\n    at flush\r\n(/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17)\r\n    at process._tickCallback (node.js:355:11)`"},"comment":{"url":"https://api.github.com/repos/Kurtz1993/ionic-minify/issues/comments/157072988","html_url":"https://github.com/Kurtz1993/ionic-minify/issues/9#issuecomment-157072988","issue_url":"https://api.github.com/repos/Kurtz1993/ionic-minify/issues/9","id":157072988,"user":{"login":"Kurtz1993","id":5412470,"avatar_url":"https://avatars.githubusercontent.com/u/5412470?v=3","gravatar_id":"","url":"https://api.github.com/users/Kurtz1993","html_url":"https://github.com/Kurtz1993","followers_url":"https://api.github.com/users/Kurtz1993/followers","following_url":"https://api.github.com/users/Kurtz1993/following{/other_user}","gists_url":"https://api.github.com/users/Kurtz1993/gists{/gist_id}","starred_url":"https://api.github.com/users/Kurtz1993/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kurtz1993/subscriptions","organizations_url":"https://api.github.com/users/Kurtz1993/orgs","repos_url":"https://api.github.com/users/Kurtz1993/repos","events_url":"https://api.github.com/users/Kurtz1993/events{/privacy}","received_events_url":"https://api.github.com/users/Kurtz1993/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T15:41:39Z","updated_at":"2015-11-16T15:41:39Z","body":"Also tested with Node 5.0.0 and still no problems. I will upload an update on ionic-minify@next for you to test. I only removed some unnecessary dependencies and update UglifyJS dependency.\r\nIf you could test this and give me your feedback, it'd be awesome.\r\n\r\nThanks."}}