Ionic prod release build source map extractor scripts
In your angular ionic projects angular.json file look for "sourceMap" field, make it true. This will generate source map for you every time you build your project whether its prod or non prod build. Now we dont want this source map files to go in build because of security risk and also your build size will increase drastically. To resolve this we can write two custom scripts which will copy your soruce map files to some other folder. We need to call script using before build and after build hooks provided by Ionic. So alter your ionic.config.json as follows: { "name": "list-creator-app", "integrations": { "cordova": {} }, "type": "angular", "hooks": { "build:before": "./scripts/ionic-before-build.js", "build:after": "./scripts/ionic-post-build.js" } } Create scripts folder in your directory and put below script files in it. ionic-po