pub struct JsBuildOptions {Show 15 fields
pub app_dir: String,
pub entry: Option<String>,
pub css: Option<String>,
pub dom: Option<String>,
pub css_bundle: Option<bool>,
pub plugin: Option<String>,
pub components: Option<Vec<String>>,
pub component_asset_roots: Option<Vec<String>>,
pub metafile: Option<bool>,
pub css_file_name_template: Option<String>,
pub css_public_base: Option<String>,
pub legal_comments: Option<String>,
pub theme: Option<String>,
pub projection_manifests: Option<Vec<String>>,
pub projection_manifest_objects: Option<Vec<JsProjectionManifest>>,
}Expand description
Build options for the webui build API.
Fields§
§app_dir: StringPath to the application folder containing templates.
entry: Option<String>Entry HTML file name (defaults to “index.html”).
css: Option<String>CSS mode: “link” (default), “style”, or “module”.
dom: Option<String>Fallback DOM strategy: “shadow” (default) or “light”.
css_bundle: Option<bool>Merge component stylesheets into shared bundled chunks.
Composes with css: bundling decides how stylesheets are grouped, css
decides how they reach the page.
plugin: Option<String>Plugin identifier (see crate documentation for available identifiers).
components: Option<Vec<String>>Additional component sources (npm packages or local paths).
component_asset_roots: Option<Vec<String>>Root component tags emitted as static .webui.js ESM assets.
metafile: Option<bool>Generate and return an esbuild-compatible component asset metafile.
css_file_name_template: Option<String>Link-mode CSS filename template using [name], [hash], [ext].
css_public_base: Option<String>Optional base URL/path prefix for Link-mode css hrefs.
legal_comments: Option<String>Legal comment handling: “inline” (default) or “none”.
theme: Option<String>Design token theme: a JSON file path or npm package name.
projection_manifests: Option<Vec<String>>Projection manifest paths.
projection_manifest_objects: Option<Vec<JsProjectionManifest>>Inline manifest objects with their logical paths.
Trait Implementations§
Source§impl FromNapiValue for JsBuildOptions
impl FromNapiValue for JsBuildOptions
Source§unsafe fn from_napi_value(
env: napi_env,
napi_val: napi_value,
) -> Result<JsBuildOptions>
unsafe fn from_napi_value( env: napi_env, napi_val: napi_value, ) -> Result<JsBuildOptions>
fn from_unknown(value: Unknown<'_>) -> Result<Self, Error>
Source§impl ToNapiValue for JsBuildOptions
impl ToNapiValue for JsBuildOptions
Source§unsafe fn to_napi_value(
env: napi_env,
val: JsBuildOptions,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: JsBuildOptions, ) -> Result<napi_value>
fn into_unknown(self, env: &Env) -> Result<Unknown<'_>, Error>
Source§impl TypeName for JsBuildOptions
impl TypeName for JsBuildOptions
Source§impl ValidateNapiValue for JsBuildOptions
impl ValidateNapiValue for JsBuildOptions
Source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
Auto Trait Implementations§
impl Freeze for JsBuildOptions
impl RefUnwindSafe for JsBuildOptions
impl Send for JsBuildOptions
impl Sync for JsBuildOptions
impl Unpin for JsBuildOptions
impl UnsafeUnpin for JsBuildOptions
impl UnwindSafe for JsBuildOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more