Sha256: 9ccda092eab4077a312cc04f5992f0baa75cdf68ed60d28f75112aa3be5c57bb
Contents?: true
Size: 881 Bytes
Versions: 4
Compression:
Stored size: 881 Bytes
Contents
require 'sinatra/asset_pipeline' module Aerogel::Assets # Registers and configures assets pipeline # def self.registered( app ) # Include these files when precompiling assets app.set :assets_precompile, %w(application.js controllers/*.js application.css controllers/*.css) + %w(*.png *.jpg *.gif *.svg *.eot *.ttf *.woff) # Logical paths to your assets (in reverse order) app.set :assets_prefix, [ Aerogel.get_resource_paths( :assets ) ].flatten.reverse # Use another host for serving assets # set :assets_host, '<id>.cloudfront.net' # Serve assets using this protocol # set :assets_protocol, :http # CSS minification app.set :assets_css_compressor, :yui # JavaScript minification app.set :assets_js_compressor, :uglifier app.register Sinatra::AssetPipeline end end # module Aerogel::Assets
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
aerogel-core-1.3.0 | lib/aerogel/core/assets.rb |
aerogel-core-1.1.1 | lib/aerogel/core/assets.rb |
aerogel-core-1.1.0 | lib/aerogel/core/assets.rb |
aerogel-core-1.0.4 | lib/aerogel-core/assets.rb |