ignorar uglifier en produccion

This commit is contained in:
f 2019-09-13 17:50:16 -03:00
parent 39e0092c22
commit 04341813d7
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D

View file

@ -29,7 +29,13 @@ Rails.application.configure do
# Compress CSS using a preprocessor. # Compress CSS using a preprocessor.
config.assets.css_compressor = :sass 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. # Do not fallback to assets pipeline if a precompiled asset is missed.
config.assets.compile = false config.assets.compile = false