ScssCompiler

Implements \ScssCompilerInterface

Class ScssCompiler

package

Default

Methods

ScssCompiler constructor.

__construct() 

addImportPath

addImportPath( $path) 

Arguments

$path

serve

serve(string $fileToServe) 
Throws
\Exception

Arguments

$fileToServe

string

setAdditionalScssFiles

setAdditionalScssFiles(array<mixed,string>|string $scss) 

Arguments

$scss

array<mixed,string>|string

Path to scss files

setBasePath

setBasePath(string $basePath) 

Arguments

$basePath

string

setFormatter

setFormatter(integer|mixed $formatter) 

Arguments

$formatter

integer|mixed

ScssCompilerInterface::STYLE_CONSTANT (1-4)

setVariables

setVariables(array $variables) 

Arguments

$variables

array

Properties

additionalScssFiles

additionalScssFiles : array
var

Type(s)

array

basePath

basePath : string
var

Type(s)

string

compiler

compiler : \Leafo\ScssPhp\Compiler
var

Type(s)

\Leafo\ScssPhp\Compiler

server

server : \Leafo\ScssPhp\GxScssServer