From: Tom Hughes Date: Fri, 4 Mar 2016 10:29:58 +0000 (+0000) Subject: Only compile those iD assets that we actually need X-Git-Tag: live~3928 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/397b68af3288c4e4f4d04740ea79c3b6fb9cbda2?hp=fea08ef39b647b902e490da1a82f6446d641cd8a Only compile those iD assets that we actually need --- diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb index fe561bf69..eaad2a2f2 100644 --- a/config/initializers/assets.rb +++ b/config/initializers/assets.rb @@ -26,4 +26,8 @@ Rails.application.config.assets.precompile += %w( potlatch2/assets.zip ) Rails.application.config.assets.precompile += %w( potlatch2/FontLibrary.swf ) Rails.application.config.assets.precompile += %w( potlatch2/locales/*.swf ) Rails.application.config.assets.precompile += %w( help/introduction.* ) -Rails.application.config.assets.precompile << Proc.new { |path, fn| fn =~ /vendor\/assets\/iD/ } +Rails.application.config.assets.precompile += %w( iD/img/*.svg iD/img/*.png iD/img/*.gif ) +Rails.application.config.assets.precompile += %w( iD/img/pattern/*.png ) +Rails.application.config.assets.precompile += %w( iD/locales/*.json ) +Rails.application.config.assets.precompile += %w( iD/traffico/stylesheets/traffico.css ) +Rails.application.config.assets.precompile += %w( iD/traffico/string-maps/*.json )