Since there is no access to the webpack.config.js (and it's devtool setting) for angular-cli, is there any way to control which type of sourcemaps are generated in the production build? I want the production build and compression, etc but I want usable TS sources as well so I can troubleshoot the code once it is deployed. This that possible?
I think https://github.com/angular/angular-cli/pull/2519 fixes this.
@filipesilva I see this is waiting for a sync ("This branch is out-of-date with the base branch"). Any ETA on that?
@filipesilva Just to clarify, are TS sourcemaps for prod build always enabled now? Or is there a build time command option to control whether source maps are created? Thx, in advance for a brief reply.
@filipesilva thanks!!
@tomwanzek always. That was the original intention but we forgot to correctly configure UglifyJsPlugin.
@filipesilva And if we don't want map files in prod is it possible to not have them?
Because if I want to deploy my website having a map file of like 10Mo is a bit too heavy, and as I don't need them. I would need them but not for my prod build, so maybe a parameter to configure it can be good.
Just tell me if it's possible/planned or not and I will deal with it.
@maxailloud not something that's specifically planned atm. Although to be honest there have been a fair number of these requests to further customise minor aspects of builds, so probably in the future we'll just have way more flags there.
For now though, I wouldn't expect it soon as there are way bigger fish to fry. In your specific case I'd make the file copy script ignore/delete the map files when deploying, there should be no problem.
@filipesilva Yeah sure I can definitley understand that there is more important stuff to do.
Yeah i will just delete the map file.
Thank you for your answer.
I also need an option to build without source maps, seems basic
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._