class Assets
A factory class for creating frontend asset compilers.
Properties
| array | $sources |
|
||
| protected array | $lessImportOverrides |
|
||
| protected array | $fileSourceOverrides |
|
Methods
__construct(string $name, Cloud $assetsDir, string|null $cacheDir = null, array|null $lessImportDirs = null, array $customFunctions = [])
No description
string|null
fontsDir()
Where the webfonts referenced by the compiled CSS live on disk, so their URLs can be revisioned. Font URLs are written relative to the stylesheet that imports them (`../webfonts/…`), so the fonts sit beside each LESS import directory — that is the same directory the assets publisher copies into `assets/fonts`.
Details
at
line 37
__construct(string $name, Cloud $assetsDir, string|null $cacheDir = null, array|null $lessImportDirs = null, array $customFunctions = [])
at
line 95
JsCompiler
makeJs()
at
line 104
LessCompiler
makeCss()
at
line 113
JsCompiler
makeLocaleJs(string $locale)
at
line 122
LessCompiler
makeLocaleCss(string $locale)
at
line 131
JsDirectoryCompiler
makeJsDirectory()
at
line 140
protected JsCompiler
makeJsCompiler(string $filename)
at
line 148
protected LessCompiler
makeLessCompiler(string $filename)
at
line 184
protected string|null
fontsDir()
Where the webfonts referenced by the compiled CSS live on disk, so their URLs can be revisioned. Font URLs are written relative to the stylesheet that imports them (`../webfonts/…`), so the fonts sit beside each LESS import directory — that is the same directory the assets publisher copies into `assets/fonts`.