lautis / uglifier

Ruby wrapper for UglifyJS JavaScript compressor.
http://www.rubydoc.info/gems/uglifier
MIT License
613 stars 82 forks source link

Still getting harmony mode precompile error after adding Uglifier.new(harmony: true) #146

Closed jaredgalanis closed 6 years ago

jaredgalanis commented 6 years ago

I was getting this error on deployment:

Uglifier::Error: Unexpected token: operator (>). To use ES6 syntax, harmony mode must be enabled with Uglifier.new(:harmony => true).

I added config.assets.js_compressor = Uglifier.new(harmony: true) to config/environments/production.rb, but I'm still getting this error. Is this known behavior?

jaredgalanis commented 6 years ago

Solved this: needed to push these changes to github before running a deploy.