class

Hwaro::Assets::Pipeline

Inherits Reference < Object

Constants

CSS_URL_RE = /url\(\s*(["']?)([^"')]+?)\1\s*\)/i

Constructors

new(config : Models::AssetsConfig, sass_enabled : Bool = false)

sass_enabled mirrors [sass].enabled: .scss bundle entries compile through the built-in compiler only when the feature is on; otherwise they concatenate verbatim (pre-Sass behavior, and the escape hatch for sources outside the supported subset).

Source

Instance methods

manifest

Manifest mapping original names to fingerprinted output paths e.g. "main.css" => "/assets/main.a1b2c3d4.css"

Source
process(output_dir : String)
Source
written_paths

Output files this run actually wrote, as filesystem paths under the build output directory. The caller (AssetHooks) claims them so a --cache build — which never wipes the output directory — can drop the previous fingerprinted bundle instead of accumulating one file per edit in public/assets/ forever.

Source