-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ng serve --prod --source-map does not produce source maps #10886
Comments
You can change it in angular.json in architect -> build -> "builder": "@angular-devkit/build-angular:browser" -> configurations -> production -> sourceMap |
Thank you, @jmesa-sistel. Indeed, it works. But:
|
@Maximaximum |
@jmesa-sistel yeah, it looks like a bug to me, because otherwise I wonder what is the sense of having the command-line args at all, if they're overwritten by the config file. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Versions
Repro steps
ng serve --prod --source-map
Observed behavior
The ouput js and css bundles do not contain the source maps.
Desired behavior
The output bundles should contain the source maps, and the browser (Chrome) should recognize them.
Mention any other details that might be useful (optional)
The text was updated successfully, but these errors were encountered: