class

Hwaro::Assets::SassCompiler

Inherits Reference < Object

Constants

SOURCE_DIR = "static"

Constructors

new(config : Models::SassConfig, static_config : Models::StaticConfig)
Source

Class methods

compile_source(source : String, path : String) : String

Compiles one SCSS source, converting compiler errors into classified build errors. Also used by the asset pipeline for .scss bundle entries.

Source

Instance methods

compile_all(output_dir : String) : Int32

Compiles every entry file and returns the compiled count. Partials (_*.scss) and statically-excluded paths are skipped; the raw sources themselves are excluded from the static copy separately (Models::Config#sass_source?).

Source
written_paths

The .css files the last compile_all wrote (output-dir paths). Callers claim them (Builder#claim_generated_output) so a --cache build prunes the stylesheet of a deleted or renamed .scss entry.

Source