From 9aea49f634b6744d433c7181e1ad04a3f4c5d9c3 Mon Sep 17 00:00:00 2001 From: zhangshengjie Date: Wed, 23 Dec 2020 13:58:53 +0800 Subject: [PATCH] Update app-store.md Add flag to disable sourceMapsh generation --- src/pages/deployment/app-store.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/deployment/app-store.md b/src/pages/deployment/app-store.md index 745338e5fb2..1a61d680c4b 100755 --- a/src/pages/deployment/app-store.md +++ b/src/pages/deployment/app-store.md @@ -28,11 +28,12 @@ If the iOS platform is not already added, be sure to add it: $ ionic cordova platform add ios ``` -With the platform added, run the build command with the `--prod` flag: +With the platform added, run the build command with the `--prod` and `--release` flag: ```shell -$ ionic cordova build ios --prod +$ ionic cordova build ios --prod --release ``` +Note:the `--release` flag will disable the generation of sourceMap files in the www directory This will generate the minified code for the web portion of an app and copy it over the iOS code base.