Closed javinto closed 4 years ago
You need to change the parsing engine. Edit your config/environment/production.rb
and look for the Uglifier line. Change it to:
config.assets.js_compressor = Uglifier.new(harmony: true)
see:
You need to change the parsing engine. Edit your
config/environment/production.rb
and look for the Uglifier line. Change it to:
config.assets.js_compressor = Uglifier.new(harmony: true)
see:
Thanks! That did the work
You need to change the parsing engine. Edit your
config/environment/production.rb
and look for the Uglifier line. Change it to:
config.assets.js_compressor = Uglifier.new(harmony: true)
see:
This resolved the issue for me too 👍🏻
Thank you, just tested with config.assets.js_compressor = Uglifier.new(harmony: true) and that solved the problem.
When I use Javascript template literals for interpolation I get an Uglifier::Error. Example
console.log(`This should match ${times} times`);
I get the following error on deployment of my Rails application:
Uglifier::Error: Unexpected character '`'
.../bundle/ruby/2.4.0/gems/uglifier-4.1.8/lib/uglifier.rb:234:in `parse_result'