module

Plombir::Assets::Manifest

Reads and writes the fingerprinted-asset manifest (dist/.plombir/manifest.json): source-relative paths under assets/ mapped to their fingerprinted output-relative paths.

The HTML rewrite pass (roadmap Phase 5, item 2) will read this to resolve asset_url("style.css"); the pipeline writes it.

Constants

PATH = File.join(".plombir", "manifest.json")

Manifest location inside the output directory.

Class methods

read(output_dir : String) : Hash(String, String) | Nil

Reads the manifest back, or nil when it is missing or corrupt (a stale dist/ is never fatal — the next build rewrites it).

Source
write(output_dir : String, files : Hash(String, String)) : String

Writes files as JSON, creating parent directories. Returns the manifest path.

Source