Skip to content

@ui5/builder/tasks/minify

Methods

(static) default(parameters) → {Promise<undefined>}

Description: Task to minify resources.

Source: builder/lib/tasks/minify.js, line 9

Parameters:
NameTypeDescription
parametersobjectParameters
Properties:
NameTypeAttributesDescription
workspace@ui5/fs/DuplexCollectionDuplexCollection to read and write files
taskUtil@ui5/project/build/helpers/TaskUtil | objectoptionalTaskUtil
optionsobjectOptions
Properties
NameTypeAttributesDefaultDescription
patternstringPattern to locate the files to be processed
omitSourceMapResourcesbooleanoptionalfalseWhether source map resources shall
be tagged as "OmitFromBuildResult" and no sourceMappingURL shall be added to the minified resource
useInputSourceMapsbooleanoptionaltrueWhether to make use of any existing source
maps referenced in the resources to be minified. Use this option to preserve reference to the original
source files, such as TypeScript files, in the generated source map.
Returns:

Promise resolving with undefined once data has been written

Type: Promise<undefined>