Package Exports
- ui5-task-minifier
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ui5-task-minifier) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ui5-task-minifier
Task for ui5-builder which enables minifying HTML/CSS/JSON files. These files are not minified by ui5-builder therefore you need a custom task for it.
Install
npm install ui5-task-minifier --save-dev
Configuration options (in $yourapp/ui5.yaml
)
- css:
true
|false
- Should minify CSS files? By default set totrue
- html:
true
|false
- Should minify HTML files? By default set totrue
- json:
true
|false
- Should minify JSON files? By default set totrue
Usage
- Define the dependency in
$yourapp/package.json
:
"devDependencies": {
// ...
"ui5-task-minifier": "*"
// ...
},
"ui5": {
"dependencies": [
// ...
"ui5-task-minifier",
// ...
]
}
As the devDependencies are not recognized by the UI5 tooling, they need to be listed in the
ui5 > dependencies
array. In addition, once using theui5 > dependencies
array you need to list all UI5 tooling relevant dependencies.
- Configure it in
$yourapp/ui5.yaml
:
builder:
customTasks:
- name: ui5-task-minifier
afterTask: uglify
configuration:
html: true
css: true
json: false
Author
Mauricio Lauffer