From d200c1ddbf707fb41249b79010e05d7526a02582 Mon Sep 17 00:00:00 2001 From: Garrett Martin Date: Tue, 13 Feb 2018 21:12:03 -0600 Subject: [PATCH] Allow uglifier to compile ES6. (#109) --- config/environments/production.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 6192d68..2ff14fb 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -9,7 +9,7 @@ config.action_controller.perform_caching = true config.cache_store = :redis_store, ENV['REDISTOGO_URL'] config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? - config.assets.js_compressor = :uglifier + config.assets.js_compressor = Uglifier.new(harmony: true) config.assets.compile = true config.action_controller.asset_host = ENV.fetch("ASSET_HOST", ENV["APPLICATION_HOST"]) config.log_level = :debug