Skip to content

Instantly share code, notes, and snippets.

View peace-for-God's full-sized avatar
💭
Peace, I may be slow to respond.

peace-for-God

💭
Peace, I may be slow to respond.
View GitHub Profile
@jfoclpf
jfoclpf / minification_apachecordova.md
Last active September 2, 2022 19:17
How to minify html, css and js files in Apache Cordova

How to minify html, css and js files in Apache Cordova

Problem

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.

What to minify

The files to be minified should obey the following pattern, inside your www dir:

./**/*.html # all .html files