5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 04:41:43 +00:00

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.
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