I would have to run ionic cordova build android --prod
with increased memory.
I’ve seen I can run
ionic cordova build --prod
with
node --max-old-space-size=8192 ./node_modules/@ionic/app-scripts/bin/ionic-app-scripts.js build --prod --release
.
For the android build, I’ve tried
node --max-old-space-size=8192 ./node_modules/@ionic/app-scripts/bin/ionic-app-scripts.js build --target cordova --platform android --prod --release
,
but the target and platform sections seem to be ignored, because the app stops after a regular production build (lint is the latest build task run), so does not start the specified platform build.
So, what is the proper syntax for --target cordova --platform android
?