Minifying assets in Apache Cordova helps you to reduce the size of your apk or aab file, and also allows you to uglify any sensible information you may have therein. The minification should be done to all assets, specifically html
, css
and js
files after cordova prepare
, that is, before cordova compile
.
The files to be minified should obey the following pattern, inside your www
dir:
./**/*.html # all .html files