{"action":"closed","issue":{"url":"https://api.github.com/repos/terinjokes/gulp-uglify/issues/184","repository_url":"https://api.github.com/repos/terinjokes/gulp-uglify","labels_url":"https://api.github.com/repos/terinjokes/gulp-uglify/issues/184/labels{/name}","comments_url":"https://api.github.com/repos/terinjokes/gulp-uglify/issues/184/comments","events_url":"https://api.github.com/repos/terinjokes/gulp-uglify/issues/184/events","html_url":"https://github.com/terinjokes/gulp-uglify/issues/184","id":157076431,"number":184,"title":"JS_Parse_Error","user":{"login":"zakiaziz","id":940281,"avatar_url":"https://avatars.githubusercontent.com/u/940281?v=3","gravatar_id":"","url":"https://api.github.com/users/zakiaziz","html_url":"https://github.com/zakiaziz","followers_url":"https://api.github.com/users/zakiaziz/followers","following_url":"https://api.github.com/users/zakiaziz/following{/other_user}","gists_url":"https://api.github.com/users/zakiaziz/gists{/gist_id}","starred_url":"https://api.github.com/users/zakiaziz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zakiaziz/subscriptions","organizations_url":"https://api.github.com/users/zakiaziz/orgs","repos_url":"https://api.github.com/users/zakiaziz/repos","events_url":"https://api.github.com/users/zakiaziz/events{/privacy}","received_events_url":"https://api.github.com/users/zakiaziz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-26T20:52:21Z","updated_at":"2016-05-26T21:03:58Z","closed_at":"2016-05-26T21:03:58Z","body":"I have a `public/app.js` file that I want minified. I have a gulp task defined like this:\r\n```\r\nvar uglify  = require('gulp-uglify');\r\n\r\ngulp.task('uglify-app-js', function() {\r\n  return gulp.src('public/app.js')\r\n    .pipe(uglify())\r\n    .pipe(gulp.dest('public/'));\r\n});\r\n```\r\nRunning it outputs an error:\r\n```\r\n$ gulp uglify-app-js\r\n[20:41:06] Using gulpfile ~/project/gulpfile.js\r\n[20:41:06] Starting 'uglify-app-js'...\r\n\r\nevents.js:72\r\n        throw er; // Unhandled 'error' event\r\n              ^\r\nError\r\n    at new JS_Parse_Error (eval at <anonymous> (/home/user/project/node_modules/uglify-js/tools/node.js:24:4), <anonymous>:1525:18)\r\n    at js_error (eval at <anonymous> (/home/user/project/node_modules/uglify-js/tools/node.js:24:4), <anonymous>:1533:11)\r\n    at croak (eval at <anonymous> (/home/user/project/node_modules/uglify-js/tools/node.js:24:4), <anonymous>:2025:9)\r\n    at token_error (eval at <anonymous> (/home/user/project/node_modules/uglify-js/tools/node.js:24:4), <anonymous>:2033:9)\r\n    at unexpected (eval at <anonymous> (/home/user/project/node_modules/uglify-js/tools/node.js:24:4), <anonymous>:2039:9)\r\n    at expr_atom (eval at <anonymous> (/home/user/project/node_modules/uglify-js/tools/node.js:24:4), <anonymous>:2541:13)\r\n    at maybe_unary (eval at <anonymous> (/home/user/project/node_modules/uglify-js/tools/node.js:24:4), <anonymous>:2715:19)\r\n    at expr_ops (eval at <anonymous> (/home/user/project/node_modules/uglify-js/tools/node.js:24:4), <anonymous>:2750:24)\r\n    at maybe_conditional (eval at <anonymous> (/home/user/project/node_modules/uglify-js/tools/node.js:24:4), <anonymous>:2755:20)\r\n    at maybe_assign (eval at <anonymous> (/home/user/project/node_modules/uglify-js/tools/node.js:24:4), <anonymous>:2779:20)\r\n    at expression (eval at <anonymous> (/home/user/project/node_modules/uglify-js/tools/node.js:24:4), <anonymous>:2798:20)\r\n    at expr_atom (eval at <anonymous> (/home/user/project/node_modules/uglify-js/tools/node.js:24:4), <anonymous>:2531:26)\r\n    at maybe_unary (eval at <anonymous> (/home/user/project/node_modules/uglify-js/tools/node.js:24:4), <anonymous>:2715:19)\r\n```\r\nI'm pretty new to gulp (and JS in general) and am not sure how to go about debugging this issue."}}
{"actor":{"display_login":"terinjokes"}}