@sdeverywhere/build / build
build(mode
, options
): Promise
<Result
<BuildResult
, Error
>>
Initiate the build process, which can either be a single build if mode
is
'production', or a live development environment if mode
is 'development'.
Name | Type | Description |
---|---|---|
mode |
BuildMode |
The build mode. |
options |
BuildOptions |
The build options. |
Promise
<Result
<BuildResult
, Error
>>
An ok
result if the build completed, otherwise an err
result.