new Build(targetsnon-null)
Parameters:
Name | Type | Description |
---|---|---|
targets | Array.<string> | The targets to build. |
- Source
Throws:
If not running in dev mode.
- Type
- Error
Methods
go() → (non-null) {Promise}
Executes the build.
- Source
Throws:
If no targets were specified.
- Type
- Error
Returns:
A promise that will be resolved when the build has completed.
- Type:
- Promise
onlyOnce() → (non-null) {Build}
Configures this build to only execute if it has not previously been run during the life of the current process.
- Source
Returns:
A self reference.
- Type:
- Build