public function LibsassCompiler::compile in SCSS/Less Compiler 8
Compiles single source file.
Parameters
array $source_file: An associative array with file info.
- name: filename. Required.
- namespace: theme/module name. Required.
- source_path: source file path. Required.
- css_path: css file destination path. Required.
Overrides ScssCompilerPluginInterface::compile
File
- src/
Plugin/ ScssCompiler/ LibsassCompiler.php, line 176
Class
- LibsassCompiler
- Plugin implementation of the Libsass compiler.
Namespace
Drupal\scss_compiler\Plugin\ScssCompilerCode
public function compile(array $scss_file) {
// Node-sass cli has awful performance, so we collect all scss files and run
// them through custom script.
$this->queueList[] = $scss_file;
}