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 fe561bf..eaad2a2 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 )