-
Notifications
You must be signed in to change notification settings - Fork 310
Source maps are not disabled in prod build #977
Comments
Hi @ryaa, Since you have the Thanks, |
Setting this to false gives an error. The same as here #934 So I don't see any way to disable source maps for the PROD build. That's the problem |
Dan, here you state that source maps are disabled for prod build by default - see comment made on Jan 11 #289 (comment) |
Not using Thanks, |
Dan, are you saying that if i use anything besides eval (for example "ionic_source_map_type": "#inline-source-map" or "source-map") and "ionic_generate_source_map": is true the ionic-app-scripts will disable the source maps by default in PROD build? The problem is that it is not possible to create PROD build without source maps. The "ionic_generate_source_map": false configuration does not work (gives an error) and if it is true it includes source maps into the production build. |
Remove Remove You should be good to go. Thanks, |
using this will fix it |
Thank you very much @aelsharif Note that "ionic_source_map_type" must be "source-map" |
@ryaa if |
@cocowalla what is the ionic-app-scripts version? and what is the value for "ionic_generate_source_map"? if it is false and you use the latest ionic-app-scripts version that this is expected behaviour, I think |
@ryaa app-scripts are at 2.1.4, but this problem has persisted for many previous versions.
|
@cocowalla strange. I use 2.1.3 and can generate source maps with ionic_generate_source_map true and ionic_source_map_type source-map settings... |
@ryaa it doesn't work for me, or anyone else on my team. In on Windows, if it makes any difference:
|
I have the same problem |
Appears to do nothing -- how does one disable sourcemaps completely in production?
Even if the sourcemap 404s I'd really prefer not advertising my local filesystem to the world. |
I disabled source map completely from the prod release by doing the below:
This works with ionic cli 3.19.1 |
Note: for support questions, please use one of these channels:
https://forum.ionicframework.com/
http://ionicworldwide.herokuapp.com/
Short description of the problem:
Issuing ionic build android --release --prod creates production apk which still includes source maps. Those must be disabled in the production build
What behavior are you expecting?
Source maps disabled in production build.
Steps to reproduce:
"ionic_generate_source_map": true
Production APK file created still contains source map files
Which @ionic/app-scripts version are you using?
1.3.7
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
The text was updated successfully, but these errors were encountered: