Need to support un-minify global JS scripts for debugging
Bug Report or Feature Request (mark with an x)
- [] bug report -> please search issues before submitting
- [x] feature request
Versions.
@angular/cli: 1.0.2 node: 6.10.1 os: darwin x64
Repro steps.
I have an angular-cli project, and manually copied some 3rd party un-minified JS lib files under src/app folder, and then reference it in .angular-cli.json scripts array (like "scripts": ['app/myLib.js']). Everything works well.
Here is my command to run the app: $ ng serve --ssl --port 3000 --open or $ ng serve --prod --sourcemap --ssl --port 3000
Since I need to overwrite those JS files to add some customized features, I want to debug the un-minified JS files in Chrome devtools. However, by using either of the commands above to run the app, it can only give me minified JS libraries under Chrome devtools --> sources --> webpack:// --> . --> src --> app
The log given by the failure.
Desired functionality.
Hope angular-cli can have option to un-minify 3rd party JS libs in the source code (like un-minify ts files), but minify them in the build bundle.
Mention any other details that might be useful.
Dupe of #6166?
Good catch @franktroia, it is indeed a dupe of that issue 👍
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.