Use uglifier with no mungle option in order to fix leaflet in production

This commit is contained in:
Paul Chavard 2018-09-25 17:29:06 +02:00
parent fd8961d972
commit 198547778d

View file

@ -28,7 +28,7 @@ Rails.application.configure do
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
# Compress JavaScripts and CSS.
config.assets.js_compressor = :uglifier
config.assets.js_compressor = Uglifier.new(mangle: false)
# config.assets.css_compressor = :sass
# Do not fallback to assets pipeline if a precompiled asset is missed.