@ui5/builder/tasks/minify

Methods

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

Description:
  • Task to minify resources.
Source:
Parameters:
Name Type Description
parameters object Parameters
Properties
Name Type Attributes Description
workspace @ui5/fs/DuplexCollection DuplexCollection to read and write files
taskUtil @ui5/project/build/helpers/TaskUtil | object <optional>
TaskUtil
options object Options
Properties
Name Type Attributes Default Description
pattern string Pattern to locate the files to be processed
omitSourceMapResources boolean <optional>
false Whether source map resources shall be tagged as "OmitFromBuildResult" and no sourceMappingURL shall be added to the minified resource
useInputSourceMaps boolean <optional>
true Whether 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>