From 04341813d795be20782c6dfd8d61e117613c4895 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 13 Sep 2019 17:50:16 -0300 Subject: [PATCH] ignorar uglifier en produccion --- config/environments/production.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 73a3719d..a450589f 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -29,7 +29,13 @@ Rails.application.configure do # Compress CSS using a preprocessor. config.assets.css_compressor = :sass - config.assets.js_compressor = Uglifier.new(harmony: true) + + # rubocop:disable Lint/HandleExceptions + begin + config.assets.js_compressor = Uglifier.new(harmony: true) + rescue NameError + end + # rubocop:enable Lint/HandleExceptions # Do not fallback to assets pipeline if a precompiled asset is missed. config.assets.compile = false