Asset.css ViewHelper <vite:asset.css> 

The <vite:asset.css> ViewHelper allows to customize the embedding of CSS assets with the <vite:asset> ViewHelper. It can only be used as a direct child element of <vite:asset>.

See <vite:asset> for more examples.

Example: Inlining CSS 

<vite:asset entry="EXT:sitepackage/Resources/Private/JavaScript/Main.entry.js">
    <vite:asset.css inline="{true}" />
</vite:asset>
Copied!

Arguments

The following arguments are available for the asset.css ViewHelper:

additionalAttributes

additionalAttributes
Type
array
Default
array ( )
Additional attributes to be added to the <link>/<style> tag.

disabled

disabled
Type
bool
Default
false
Set to "true" if the <link> tag should be marked as disabled.

ignore

ignore
Type
bool
Default
false
Set to "true" if the CSS should not be embedded at all.

inline

inline
Type
bool
Default
false
Set to "true" if the CSS should be embedded inline with a <style> tag.

media

media
Type
string
Associated media query

priority

priority
Type
bool
Default
true
Set to "false" if the CSS should be loaded with lower priority.