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