Skip to main content

StyleChunk

Type Alias StyleChunk 

Source
pub type StyleChunk = StyleChunk;

Aliased Type§

pub struct StyleChunk {
    pub name: String,
    pub css: String,
    pub css_href: String,
    pub component_tags: Vec<String>,
}

Fields§

§name: String

Stable build-time chunk name. Surfaces as the data-webui-resource value so delivered stylesheets stay attributable without a source map.

§css: String

Concatenated compiled CSS for the Style and Module strategies. Empty for Link.

§css_href: String

External stylesheet href for the Link strategy. Empty for Style and Module.

§component_tags: Vec<String>

Component tags whose CSS this chunk concatenates, in cascade order.