Disable sourcemaps for prod


i want to release my app but i don’t want any sourcemaps for my code
tried to change sourceMap in tsConfig but it gives me an error that it should be true
also tried the environment variable --generateSourceMap false with no luck

  • tried it in CLI and config ignored both times
    is there any way to remove the sourcemaps from prod or disable it

Ionic info :
Your system information:

Cordova CLI: 6.5.0
Ionic Framework Version: 2.2.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.1.4
ios-deploy version: 1.9.1
ios-sim version: 5.0.13
OS: macOS Sierra
Node Version: v6.9.5
Xcode version: Xcode 8.2.1 Build version 8C1002


I face the same issue.