LiveStyle.Compiler.CSS.Pipeline (LiveStyle v0.13.1)

View Source

CSS generation pipeline.

This module orchestrates the transformation from manifest to final CSS output, including optional stats header.

Pipeline Stages

  1. Read manifest from storage
  2. Generate CSS via formatters
  3. Optionally prepend stats comment

Usage

# Generate CSS from current manifest
css = LiveStyle.Compiler.CSS.Pipeline.generate()

# Generate without stats
css = LiveStyle.Compiler.CSS.Pipeline.generate(stats: false)

# Generate from specific manifest
css = LiveStyle.Compiler.CSS.Pipeline.generate(manifest: my_manifest)

Summary

Functions

Generates CSS content from the manifest.

Returns statistics about the manifest.

Functions

generate(opts \\ [])

@spec generate(keyword()) :: String.t()

Generates CSS content from the manifest.

Options

  • :manifest - Use a specific manifest (default: reads from storage)
  • :stats - Include stats comment header (default: true)

Returns

The complete CSS string ready to be written to a file.

stats(manifest)

@spec stats(LiveStyle.Manifest.t()) :: keyword()

Returns statistics about the manifest.

Useful for logging after CSS generation.