classafSass4f::SassCompiler

sys::Obj
  afSass4f::SassCompiler

The wrapper around JSass that wraps LibSass.

compileFile

Source

SassResult compileFile(File inputFile, File? outputFile := null, SassOptions? options := null)

Compiles the given Sass / Scss file to a CSS string.

To compile a file:

css := SassCompiler().compileFile(`myScss.scss`).css