forked from foundation/foundation-sites
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.ru
30 lines (22 loc) · 817 Bytes
/
config.ru
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require 'sprockets'
require 'sass'
map '/assets' do
environment = Sprockets::Environment.new
environment.append_path File.expand_path('../../scss', __FILE__)
environment.append_path File.expand_path('../../js', __FILE__)
environment.append_path File.expand_path('../css', __FILE__)
environment.append_path File.expand_path('../../test/js', __FILE__)
environment.append_path File.expand_path('../js', __FILE__)
environment.append_path File.expand_path('../img', __FILE__)
# environment.css_compressor = YUI::CssCompressor.new
# environment.js_compressor = Uglifier.new(mangle: true)
run environment
end
map '/' do
use Rack::ContentLength
use Rack::Static,
:urls => ["/images", "/js", "/css"],
:root => "public",
:index => 'index.html'
run Rack::File.new("public")
end