examples/basic/app.rb in sinatra-assetpack-0.1.3 vs examples/basic/app.rb in sinatra-assetpack-0.1.4
- old
+ new
@@ -24,10 +24,21 @@
# It will default to '/css/#{name}.css'.
css :more, '/css/more.css', [
'/css/more/*.css'
]
- prebuild true
+ prebuild false
+
+ # Can set this as an environment variable like "HOST" or "CDN_HOST"
+ # This will add the domain name to the beginning of compiled assets
+ # Useful if you need to serve production assets from a CDN
+ asset_hosts [
+ '//cdn-0.example.org',
+ '//cdn-1.example.org',
+ '//cdn-2.example.org',
+ '//cdn-3.example.org'
+ ]
+
end
get '/' do
erb :index
end