LiveStyle.Compiler.CSS.Pipeline (LiveStyle v0.16.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, optionally injecting into an input file.
Returns statistics about the manifest.
Functions
Generates CSS content from the manifest, optionally injecting into an input file.
Options
:manifest- Use a specific manifest (default: reads from storage):stats- Include stats comment header (default: true):input- Optional input file path with@import "live_style"directive
When :input option is provided, reads the input file and replaces
@import "live_style" with the generated CSS.
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.