Closed andreynering closed 8 years ago
Yep same problem here.
I have a doubt: Is uglifier prepared to minify ES6?
Em sáb, 12 de dez de 2015 06:32, tabaliov notifications@github.com escreveu:
Yep same problem here.
— Reply to this email directly or view it on GitHub https://github.com/lautis/uglifier/issues/89#issuecomment-164125505.
Error i got was because of accidental ES6. i had functionName : (){} instead of functionName: functon(){} no JS error in chrome but unable to compile.
ES6 would explain this. UglifyJS doesn't support ES6 syntax at least yet.
This is a cross post from https://github.com/rails/sprockets/issues/187
This is the output message from the Rails task (
rake assets:precompile
): https://gist.githubusercontent.com/andreynering/123b60cb81e3a1c97dab/raw/bf7bad49c719e90231e6eafb91879d9ba25a58e3/output.txtUnfortunately, I don't know how to reproduce it. But I think it should work, because the non-minified JS run without problems on both Chrome and Firefox.