Volt.Pipeline.Result (Volt v0.13.0)

Copy Markdown View Source

Compiled output returned by Volt.Pipeline.compile/3.

Pipeline results carry JavaScript or CSS code plus optional side-channel data used by the dev server and production builder, such as sourcemaps, extracted CSS, SFC block hashes, and warnings from framework compilers.

Summary

Types

t()

@type t() :: %Volt.Pipeline.Result{
  code: String.t(),
  css: String.t() | nil,
  hashes: Volt.Pipeline.Result.Hashes.t() | nil,
  sourcemap: String.t() | nil,
  type: type(),
  warnings: [term()]
}

type()

@type type() :: :js | :css