From 6054eea2383438cf0439175a2dd7216476f60971 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Fri, 19 Oct 2012 15:53:06 -0700 Subject: [PATCH] Bundle leaflet css in a single asset --- app/assets/stylesheets/leaflet-all.css | 6 ++++++ app/views/layouts/_head.html.erb | 4 +--- config/environments/production.rb | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 app/assets/stylesheets/leaflet-all.css diff --git a/app/assets/stylesheets/leaflet-all.css b/app/assets/stylesheets/leaflet-all.css new file mode 100644 index 000000000..153c5684f --- /dev/null +++ b/app/assets/stylesheets/leaflet-all.css @@ -0,0 +1,6 @@ +/* + *= require leaflet + *= require leaflet.locationfilter + *= require leaflet.pan + *= require leaflet.zoom + */ diff --git a/app/views/layouts/_head.html.erb b/app/views/layouts/_head.html.erb index 17c58c792..44385f2be 100644 --- a/app/views/layouts/_head.html.erb +++ b/app/views/layouts/_head.html.erb @@ -5,9 +5,7 @@ <%= stylesheet_link_tag "small-#{dir}", :media => "only screen and (max-width:641px)" %> <%= stylesheet_link_tag "large-#{dir}", :media => "screen and (min-width: 642px)" %> <%= stylesheet_link_tag "print-#{dir}", :media => "print" %> - <%= stylesheet_link_tag "leaflet" %> - <%= stylesheet_link_tag "leaflet.locationfilter" %> - <%= stylesheet_link_tag "leaflet.pan", "leaflet.zoom" %> + <%= stylesheet_link_tag "leaflet-all" %>