A Cordova plugin that automatically minifies JavaScript and CSS files for release builds using Terser and CleanCSS. Current version 1.0.1, with a stable but infrequent release cadence (last update years ago). Key differentiators: integrates into Cordova build process, supports combining JavaScripts into a single file, allows configuration via minifyconfig.json, and offers scanning of HTML files for script tag order. Compared to manual minification, it automates the optimization step without modifying source files.
npm install cordova-plugin-minifyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows installation and basic usage: install plugin, build with --release to trigger minification of JS/CSS files.
Rebuild your Cordova project after making changes to HTML/JS/CSS files.
Set javascriptStrategy to 'scanHtml' and arrange file paths in correct dependency order under files.paths.
Review generated HTML after build, especially when using combineJavascripts. Ensure scanning order matches script load order.
Keep a version control backup or use separate source and build directories. The plugin operates on the www directory in-place.
Run 'cordova plugin add cordova-plugin-minify' from your project root.
Use 'cordova build android --release' or set minifyEnabled to 'Always' in minifyconfig.json.
Disable combineJavascripts by setting 'enabled': false, or ensure scanHtml strategy captures correct order.
No dependency data recorded yet.