ThemeBuilder

@ui5/builder.processors. ThemeBuilder

Builds a library theme

Constructor

new ThemeBuilder(fs)

Source:
Constructor
Parameters:
Name Type Description
fs fs | module:@ui5/fs.fsInterface Node fs or custom fs interface

Methods

build(resources, optionsopt) → {Promise.<Array.<module:@ui5/fs.Resource>>}

Source:
Starts the theme build
Parameters:
Name Type Attributes Description
resources Array.<module:@ui5/fs.Resource> Library files
options object <optional>
Build options
Properties
Name Type Attributes Default Description
compress boolean <optional>
false Compress build output (CSS / JSON)
cssVariables boolean <optional>
false Generates the CSS variables (css-variables.css, css-variables.source.less) and the skeleton for a theme (library-skeleton.css, [library-skeleton-RTL.css])
Returns:
Resolving with array of created files
Type
Promise.<Array.<module:@ui5/fs.Resource>>

clearCache()

Source:
Clears all cached build results