Volt.Builder.ManifestEntry (Volt v0.19.3)

Copy Markdown View Source

Manifest entry written to production manifest.json.

Summary

Functions

Return conflicting identities; identical shared entries are permitted.

Prefix emitted paths, preserving imports and dynamicImports as manifest keys.

Collect an entry's static stylesheet dependencies, dependencies first and deduplicated.

Types

t()

@type t() :: %Volt.Builder.ManifestEntry{
  assets: [String.t()],
  css: [String.t()],
  dynamicImports: [String.t()],
  file: String.t(),
  imports: [String.t()],
  isEntry: boolean(),
  src: String.t()
}

Functions

asset(src, file)

conflicts(left, right)

Return conflicting identities; identical shared entries are permitted.

css(src, file, assets)

js(src, file, opts \\ [])

prefix_paths(entry, prefix)

@spec prefix_paths(t(), String.t()) :: t()

Prefix emitted paths, preserving imports and dynamicImports as manifest keys.

stylesheets(manifest, key)

@spec stylesheets(%{required(String.t()) => t()}, String.t()) :: [String.t()]

Collect an entry's static stylesheet dependencies, dependencies first and deduplicated.