pub struct SvelteKitBuild {
pub project_path: String,
pub output_dir: String,
pub package_manager: String,
}Expand description
A SvelteKit build using @sveltejs/adapter-static: install dependencies,
run <package_manager> run build, and ship the adapter’s output directory
(build by default).
Server-rendered adapters are rejected up front. Their output needs a Node process on the server, which this static path doesn’t manage.
Fields§
§project_path: String§output_dir: String§package_manager: StringTrait Implementations§
Source§impl BuildStrategy for SvelteKitBuild
impl BuildStrategy for SvelteKitBuild
fn build(&self, reporter: &dyn Reporter) -> Result<BuildArtifact, DeployError>
Auto Trait Implementations§
impl Freeze for SvelteKitBuild
impl RefUnwindSafe for SvelteKitBuild
impl Send for SvelteKitBuild
impl Sync for SvelteKitBuild
impl Unpin for SvelteKitBuild
impl UnsafeUnpin for SvelteKitBuild
impl UnwindSafe for SvelteKitBuild
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
Mutably borrows from an owned value. Read more