class Assets
Properties
| protected Assets | $assets |
|
||
| protected Assets | $commonAssets |
|
Methods
Assembles JS and CSS compilers to be used to generate frontend assets.
Adds URLs of frontend JS and CSS to the Document class.
Recompile assets on every request when in debug mode, so changes show up immediately. A plain commit() recompiles from source but only writes when the output actually changed — forcing here would rewrite every bundle, sourcemap and the revision manifest on every page view.
Details
at
line 86
protected array
assembleCompilers(string|null $locale)
Assembles JS and CSS compilers to be used to generate frontend assets.
at
line 103
protected void
addAssetsToDocument(Document $document, array $compilers)
Adds URLs of frontend JS and CSS to the Document class.
at
line 117
protected void
recompile(array $compilers)
Recompile assets on every request when in debug mode, so changes show up immediately. A plain commit() recompiles from source but only writes when the output actually changed — forcing here would rewrite every bundle, sourcemap and the revision manifest on every page view.
at
line 130
protected array
getUrls(array $compilers)
Maps provided CompilerInterfaces to their URLs.