Skip to main content

BuildConfig

Type Alias BuildConfig 

Source
pub type BuildConfig = BuildConfig<String, PathBuf>;

Aliased Type§

pub struct BuildConfig {
    pub minify_rsjs: bool,
    pub assets: Option<Vec<AssetConfig<String, PathBuf>>>,
}

Fields§

§minify_rsjs: bool

Minify the generated RSJS modules and runtimes served by Axum. Defaults to true.

§assets: Option<Vec<AssetConfig<String, PathBuf>>>

None when the key is absent, so a Tailwind asset can be inferred. Some(vec![]) is an explicit “build no assets” and is left alone – with a plain Vec the two were indistinguishable and an empty array silently grew a Tailwind step back.