LiveStyle.Compiler.CSS.Pipeline (LiveStyle v0.13.0)
View SourceCSS generation pipeline.
This module orchestrates the transformation from manifest to final CSS output, including optional stats header.
Pipeline Stages
- Read manifest from storage
- Generate CSS via formatters
- 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.
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.
@spec stats(LiveStyle.Manifest.t()) :: keyword()
Returns statistics about the manifest.
Useful for logging after CSS generation.