You are here

public function ScssCompilerPluginInterface::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.
3 methods override ScssCompilerPluginInterface::compile()
LessphpCompiler::compile in src/Plugin/ScssCompiler/LessphpCompiler.php
Compiles single source file.
LibsassCompiler::compile in src/Plugin/ScssCompiler/LibsassCompiler.php
Compiles single source file.
ScssphpCompiler::compile in src/Plugin/ScssCompiler/ScssphpCompiler.php
Compiles single source file.

File

src/ScssCompilerPluginInterface.php, line 20

Class

ScssCompilerPluginInterface
Provides an interface defining a SCSS Compiler plugins.

Namespace

Drupal\scss_compiler

Code

public function compile(array $source_file);