Skip to main content

validate_declared

Function validate_declared 

Source
pub fn validate_declared(
    cache_buster: &CacheBuster,
    declared: &[String],
) -> Result<(), CacheBusterError>
Expand description

Checks that every declared asset is in the manifest.

An absolute URL is skipped: a CDN stylesheet will never be in the manifest, and that is the one legitimate reason for a path to be absent.

ยงErrors

CacheBusterError::UnresolvedAssets, naming every miss.