class
Assets
A factory class for creating frontend asset compilers.
Properties
array
|
$sources |
|
|
|
protected string
|
$name |
|
|
|
protected Filesystem
|
$assetsDir |
|
|
|
protected string
|
$cacheDir |
|
|
|
protected array
|
$lessImportDirs |
|
|
|
protected array
|
$lessImportOverrides |
|
|
|
protected array
|
$fileSourceOverrides |
|
|
|
protected array
|
$customFunctions |
|
|
|
Methods
__construct(string $name,
Filesystem $assetsDir, string $cacheDir = null, array $lessImportDirs = null, array $customFunctions = [])
No description
js($sources)
No description
css($callback)
No description
setName(string $name)
No description
Details
__construct(string $name, Filesystem $assetsDir, string $cacheDir = null, array $lessImportDirs = null, array $customFunctions = [])
protected
makeJsCompiler(string $filename)
Filesystem
getAssetsDir()
setAssetsDir(Filesystem $assetsDir)
string|null
getCacheDir()
setCacheDir(string|null $cacheDir)
array
getLessImportDirs()
setLessImportDirs(array $lessImportDirs)
addLessImportOverrides(array $lessImportOverrides)
addFileSourceOverrides(array $fileSourceOverrides)