Craft Themes (4.x)

ScssAssetBundle extends AssetBundle
in package

Table of Contents

$compilerOptions  : array<string|int, mixed>
Overridde any compiler options here
$scssFiles  : array<string|int, mixed>
$theme  : string
init()  : mixed
publish()  : mixed
compileScssFiles()  : mixed
Compile the scss files
getCompiler()  : Compiler
Get the compiler
getTheme()  : ThemeInterface
Get the theme plugin instance
isCompilingEnabled()  : bool
Should the compiling be run, true if devMode is on

Properties

$compilerOptions

Overridde any compiler options here

public array<string|int, mixed> $compilerOptions = []

$scssFiles

public array<string|int, mixed> $scssFiles = []

Scss files This must be an associative array : [ 'relative/to/theme/base/path' => 'relative/to/public/path' ]

Methods

init()

public init() : mixed
Tags
inheritDoc
Return values
mixed

publish()

public publish(mixed $am) : mixed
Parameters
$am : mixed
Tags
inheritDoc
Return values
mixed

compileScssFiles()

Compile the scss files

protected compileScssFiles() : mixed
Return values
mixed

getCompiler()

Get the compiler

protected getCompiler() : Compiler
Return values
Compiler

isCompilingEnabled()

Should the compiling be run, true if devMode is on

protected isCompilingEnabled() : bool
Return values
bool

Search results