Generate source map in release build?

I’m sorry I didn’t find anything related in the docs or forum (only for older versions which do not apply anymore), but I guess it should be somewhere already.

I’m using Sentry for error logging in my application. Sentry supports that you upload source maps for uglified JS sources per app version, so they would transform the uglified stacktraces into better readable errors.

So can anybody tell me how I can make ionic to generate JS source maps also for productive releases, but on a path which is not included in the final app output, as this must not be part of the compiled app?

A hint in the docs would ne nice about how to do this.



Has nobody an idea?
I’m really missing some information in the docs here :frowning:

I personally did not try but you’ll have to tap into and override ionic webpack build steps.