Skip to content

@ui5/builder/tasks/buildThemes ​

Methods ​

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

Description: Task to build a library theme.

A step-based task: the default export is a factory returning one map step with a key per theme's library.source.less. A step probes only the gating marker and imports of its own theme, so a delta build rebuilds only the affected theme and leaves the others served from cache. Standalone invocation runs every theme through @ui5/builder's runTask.

Source: builder/lib/tasks/buildThemes.js, line 165

Parameters: ​
NameTypeDescription
optionsobjectOptions
Properties:
NameTypeAttributesDefaultDescription
projectNamestringProject name
inputPatternstringSearch pattern for *.less files to be built
librariesPatternstringoptionalSearch pattern for .library files
themesPatternstringoptionalSearch pattern for sap.ui.core theme folders
compressbooleanoptionaltrue
Returns: ​

The task descriptor with its build steps

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