From 20e89164ba0ca632604da1b93c3274b876371b18 Mon Sep 17 00:00:00 2001 From: breadoliveoilsalt <25881824+breadoliveoilsalt@users.noreply.github.com> Date: Thu, 15 Nov 2018 11:41:48 -0500 Subject: [PATCH] In config/environments/production.rb, add config.assets.uglifier = { harmony: true } Doing this due to error popping up on testing heroku deployment. See here: https://github.com/AlexanderPavlenko/sprockets_uglifier_with_source_maps/issues/9 --- config/environments/production.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/environments/production.rb b/config/environments/production.rb index ee0fded..800676d 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -24,6 +24,7 @@ config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? # Compress JavaScripts and CSS. + config.assets.uglifier = { harmony: true } config.assets.js_compressor = :uglifier # config.assets.css_compressor = :sass