fix js compression. Speed up static asset loading

This commit is contained in:
tdreyno 2011-02-06 10:57:28 -08:00
parent 8bc6714eb1
commit ba7754e7a7
5 changed files with 32 additions and 29 deletions

View file

@ -161,7 +161,8 @@ class Middleman::Server
set :app_file, File.expand_path(local_config)
end
use ::Rack::ConditionalGet if environment == :development
use ::Rack::ConditionalGet
use ::Rack::Static, :urls => ["/#{self.images_dir}"], :root => "public"
@@run_after_features.each { |block| class_eval(&block) }