class

Azu::AssetConfiguration

Inherits Reference < Object

Configuration for asset pipeline

Azu.configure do |c|
  c.assets.prefix = "/assets"
  c.assets.path = "public/assets"
  c.assets.fingerprint = true
  c.assets.manifest_path = "public/assets/manifest.json"
end

Constructors

Instance methods

cache_max_age

Cache-Control header max-age for assets (in seconds)

Source
cache_max_age=(cache_max_age : Int32)

Cache-Control header max-age for assets (in seconds)

Source
fingerprint=(fingerprint : Bool)

Whether to append content hash fingerprints to asset URLs

Source
fingerprint?

Whether to append content hash fingerprints to asset URLs

Source
fingerprinted_path(asset : String) : String

Get the fingerprinted path for an asset

Source
integrity=(integrity : Bool)

Whether to include integrity hashes (SRI)

Source
integrity?

Whether to include integrity hashes (SRI)

Source
load_manifest

Load or reload the asset manifest

Source
manifest_path

Path to asset manifest file (for fingerprinted assets)

Source
manifest_path=(manifest_path : String)

Path to asset manifest file (for fingerprinted assets)

Source
path

File system path to assets directory

Source
path=(path : String)

File system path to assets directory

Source
prefix

URL prefix for asset paths

Source
prefix=(prefix : String)

URL prefix for asset paths

Source