Custom UI5 builder task for minifying HTML, CSS, and JSON files during the SAPUI5/OpenUI5 build process. Current stable version is 2.0.1. The package fills a gap in the default ui5-builder which does not minify these file types. It integrates via the ui5.yaml configuration, supports selective minification per file type (html, css, json), and uses standard minification libraries. Released under MIT license. Regular updates follow ui5-builder releases.
npm install ui5-task-minifierNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to configure the task in ui5.yaml to minify HTML and CSS but skip JSON.
Upgrade ui5-builder to >=2.0.0 or stay on ui5-task-minifier 1.x.
Ensure afterTask is set to 'minify'.
Explicitly set false for types you want to skip to avoid unintended minification.
Delete node_modules and package-lock.json, then run npm install.
In ui5.yaml, use name: ui5-task-minifier (must match the npm package name).