fix js compression. Speed up static asset loading
This commit is contained in:
parent
8bc6714eb1
commit
ba7754e7a7
5 changed files with 32 additions and 29 deletions
|
@ -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) }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue