Hwaro::Assets::SassCompiler
Inherits Reference / Object
Constructors
new(config : Models::SassConfig, static_config : Models::StaticConfig, source_dir : String = "static")
SourceClass 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.
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?).