Skip to content

@ui5/builder/processors/libraryLessGenerator

Methods

(static) default(parameters) → {Promise<Array<@ui5/fs/Resource>>}

Description: Creates a "library.less" file for the SAP Theme Designer based on a "library.source.less" file.

  • Bundles all *.less file of the theme by replacing the import with the corresponding file content
  • Imports to "base.less" are adopted so that they point to the "BaseLib" that is available within the Theme Designer infrastructure
  • Imports to "global.less" are kept as they should not be bundled
  • Imports to "library.source.less" are adopted to "library.less"

Source: builder/lib/processors/libraryLessGenerator.js, line 136

Parameters:
NameTypeDescription
parametersobjectParameters
Properties:
NameTypeDescription
resourcesArray<@ui5/fs/Resource>List of library.source.less
resources
fsfs | module:@ui5/fs/fsInterfaceNode fs or custom
fs interface
Returns:

Promise resolving with library.less resources

Type: Promise<Array<@ui5/fs/Resource>>