ionic-minify icon indicating copy to clipboard operation
ionic-minify copied to clipboard

The newer versions of Ionic/Cordova/Android use a different build location for android

Open walljm opened this issue 7 years ago • 1 comments

I'm on Ionic 4. I had to change line 35 of minifier.js to this:

_this.platformPaths.push(path.join(_this.basePath, platform,'app', 'src', 'main', 'assets', 'www'));

to get it working.

walljm avatar Jan 20 '18 02:01 walljm

upstream cordova-uglify solved it this way: https://github.com/rossmartin/cordova-uglify/commit/eca730222c0bc9816c3b8f096c985fb999c13135

Which is similar to your solution, but should be backward compatible as well.

Leffe108 avatar Jun 29 '18 12:06 Leffe108