{"action":"created","issue":{"url":"https://api.github.com/repos/rails/sprockets/issues/187","labels_url":"https://api.github.com/repos/rails/sprockets/issues/187/labels{/name}","comments_url":"https://api.github.com/repos/rails/sprockets/issues/187/comments","events_url":"https://api.github.com/repos/rails/sprockets/issues/187/events","html_url":"https://github.com/rails/sprockets/issues/187","id":119231169,"number":187,"title":"Uglify error on compiling assets for production","user":{"login":"andreynering","id":7011819,"avatar_url":"https://avatars.githubusercontent.com/u/7011819?v=3","gravatar_id":"","url":"https://api.github.com/users/andreynering","html_url":"https://github.com/andreynering","followers_url":"https://api.github.com/users/andreynering/followers","following_url":"https://api.github.com/users/andreynering/following{/other_user}","gists_url":"https://api.github.com/users/andreynering/gists{/gist_id}","starred_url":"https://api.github.com/users/andreynering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreynering/subscriptions","organizations_url":"https://api.github.com/users/andreynering/orgs","repos_url":"https://api.github.com/users/andreynering/repos","events_url":"https://api.github.com/users/andreynering/events{/privacy}","received_events_url":"https://api.github.com/users/andreynering/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-27T17:58:17Z","updated_at":"2015-11-27T18:17:08Z","closed_at":null,"body":"Rails 4.2.5 (but it happens also in 4.2.4).\r\n\r\nOne of my apps works fine in development mode, and I can also compile assets in development mode without any problem (`rake assets:precompile RAILS_ENV=development`), because, by default, Rails do not minify the assets on development mode.\r\n\r\nBut when I try to compile in production (`rake assets:precompile RAILS_ENV=production`) I get an error from uglify. See: https://gist.githubusercontent.com/andreynering/123b60cb81e3a1c97dab/raw/bf7bad49c719e90231e6eafb91879d9ba25a58e3/output.txt\r\n\r\nI'm using Babel/ES6/JSX from the ReactJS gem (https://github.com/reactjs/react-rails), but I don't think there is a problem with it because the non-uglified output works."},"comment":{"url":"https://api.github.com/repos/rails/sprockets/issues/comments/160185252","html_url":"https://github.com/rails/sprockets/issues/187#issuecomment-160185252","issue_url":"https://api.github.com/repos/rails/sprockets/issues/187","id":160185252,"user":{"login":"rafaelfranca","id":47848,"avatar_url":"https://avatars.githubusercontent.com/u/47848?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelfranca","html_url":"https://github.com/rafaelfranca","followers_url":"https://api.github.com/users/rafaelfranca/followers","following_url":"https://api.github.com/users/rafaelfranca/following{/other_user}","gists_url":"https://api.github.com/users/rafaelfranca/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelfranca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelfranca/subscriptions","organizations_url":"https://api.github.com/users/rafaelfranca/orgs","repos_url":"https://api.github.com/users/rafaelfranca/repos","events_url":"https://api.github.com/users/rafaelfranca/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelfranca/received_events","type":"User","site_admin":false},"created_at":"2015-11-27T18:17:07Z","updated_at":"2015-11-27T18:17:07Z","body":"Yeah. I'll take a look but it seems note a uglifier issue than a sprockets\nissue. It is possible that for a specific input uglifier get lost in the\ncompression.\n\nOn Fri, Nov 27, 2015, 16:10 Andrey Nering <notifications@github.com> wrote:\n\n> @rafaelfranca <https://github.com/rafaelfranca> Thanks for the fast\n> response.\n>\n> I actually couldn't find the exact location of that caracter, because the\n> log don't tell us in what file it is.\n>\n> I double checked and the non-uglified version compiles and runs fine on\n> both Chrome and Firefox. So, I think there isn't any sintax error, right?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/rails/sprockets/issues/187#issuecomment-160184683>.\n>\n"}}