@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:
Parameters:
Name Type Description
parameters object Parameters
Properties
Name Type Description
resources Array.<@ui5/fs/Resource> List of library.source.less resources
fs fs | module:@ui5/fs/fsInterface Node fs or custom fs interface
Returns:
Promise resolving with library.less resources
Type
Promise.<Array.<@ui5/fs/Resource>>