Need to support un-minify global JS scripts for debugging #6407
Labels
feature
Issue that requests a new feature
P5
The team acknowledges the request but does not plan to address it, it remains open for discussion
severity2: inconvenient
Bug Report or Feature Request (mark with an
x
)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.
The text was updated successfully, but these errors were encountered: