Angular-cli: Sourcemaps for production environment

Created on 10 Nov 2016  路  7Comments  路  Source: angular/angular-cli

Is there a way to generate source maps for production? I have a bug that only reproduces after uglify/mangle

Most helpful comment

Since #3963 the default has changed. No source maps by default, enable them with --sourcemap

All 7 comments

Source maps are generated for production, there is currently no way to disable them.

I'm looking for disabling source map in production :P

Hey!
You can use --no-sourcemap ;)

Closing as --no-sourcemap is now available.

Since #3963 the default has changed. No source maps by default, enable them with --sourcemap

--sourcemap has been changed to --source-map in angular 6

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings