Volt.CSS.Dependencies (Volt v0.14.8)

Copy Markdown View Source

Extracts and resolves local stylesheet dependencies.

Uses Vize's parser-backed CSS dependency selector to discover both @import and url() references. Remote, root-relative, fragment-only, data, and empty references are ignored because they are not files watched by Volt's source graph.

Summary

Functions

Resolve local stylesheet dependencies in CSS source to absolute file paths.

Resolve selected CSS dependency events to absolute file paths.

Functions

resolve(source, path)

@spec resolve(String.t(), String.t()) :: [String.t()]

Resolve local stylesheet dependencies in CSS source to absolute file paths.

resolve_selected(dependencies, path)

@spec resolve_selected([map()], String.t()) :: [String.t()]

Resolve selected CSS dependency events to absolute file paths.