Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229331

Proper syntax to run app-scripts build: --prod --platform android --target cordova

$
0
0

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?


Viewing all articles
Browse latest Browse all 229331

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>