]> git.openstreetmap.org Git - rails.git/commitdiff
Only compile those iD assets that we actually need
authorTom Hughes <tom@compton.nu>
Fri, 4 Mar 2016 10:29:58 +0000 (10:29 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 4 Mar 2016 10:29:58 +0000 (10:29 +0000)
config/initializers/assets.rb

index fe561bf69475d3ae94c46134c62627b52d3e59ac..eaad2a2f2f7dd14bc35a39075b5cdf9393ab88ef 100644 (file)
@@ -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 )