Skip to content

@ui5/builder/tasks/replaceVersion ​

Methods ​

(static) default(options) → {module:@ui5/builder/tasks/runTask~TaskDescriptor}
​

Description: Task to replace the version ${version}.

A step-based task: the default export is a factory returning one map step with a key per matched resource, so a delta build re-processes only the resources whose content changed. The replacement is a step's only input, and a resource key is content-addressed, so a changed resource is a new key that re-runs and any removed resource drops its stale output.

Source: builder/lib/tasks/replaceVersion.js, line 8

Parameters: ​
NameTypeDescription
optionsobjectOptions
Properties:
NameTypeDescription
patternstringPattern to locate the files to be processed
versionstringReplacement version
Returns: ​

The task descriptor with its build steps

Type: module:@ui5/builder/tasks/runTask~TaskDescriptor