Merge pull request #1097 from biosistemika/lm-fix-production-compiling

Change JS compressor from :uglifier to Uglifier.new(harmony: true)
This commit is contained in:
Luka Murn 2018-04-17 17:46:01 +02:00 committed by GitHub
commit 2290b75f8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,7 @@ Rails.application.configure do
# config.action_dispatch.rack_cache = true # config.action_dispatch.rack_cache = true
# Compress JavaScripts and CSS. # Compress JavaScripts and CSS.
config.assets.js_compressor = :uglifier config.assets.js_compressor = Uglifier.new(harmony: true)
# config.assets.css_compressor = :sass # config.assets.css_compressor = :sass
# Do not fallback to assets pipeline if a precompiled asset is missed. # Do not fallback to assets pipeline if a precompiled asset is missed.