Currently using Sentry for error reporting, and I'm having trouble with my source-maps. I've noticed the main.map.js is removed from the www/build file on --prod builds. I believe I need them to be in the build so I can upload them, so all the paths still match up?
I understand source-maps are stripped to reduce the app size. Is it possible however to have them spit out into a different folder rather than deleted towards the end of the build, so they can be uploaded to Sentry?
Steps to reproduce:
ionic cordova build android --prodWhich @ionic/app-scripts version are you using?
2.1.4
Seems to have figured this out myself.
"ionic_generate_source_map": "true" added to config {} in package.json
did you mean ionic.config.json ?
@Xample Actually, it needs to be added to the main project's package.json as
"config": {
"ionic_generate_source_map": "true"
},
Most helpful comment
Seems to have figured this out myself.
"ionic_generate_source_map": "true"added toconfig {}in package.json