ProCacheFileMerger::compileSCSS()

Compile an SCSS file

When using the file option the given file must include full server path and must be writable. The method will return an error string if it cannot compile or write to the file, or boolean true if file does not need an update, or a positive integer of bytes written if file was updated.

Usage

// basic usage
$string = $proCacheFileMerger->compileSCSS(string $file);

// usage with all arguments
$string = $proCacheFileMerger->compileSCSS(string $file, array $options = []);

Arguments

NameType(s)Description
$filestring

SCSS file

$options (optional)array
  • importPaths (array): Paths to look for files referenced in

Return value

string bool


ProCacheFileMerger methods and properties

API reference based on ProcessWire core version 3.0.251