Skip to content

Need to support un-minify global JS scripts for debugging #6407

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

Closed
junjunruan opened this issue May 22, 2017 · 3 comments
Closed

Need to support un-minify global JS scripts for debugging #6407

junjunruan opened this issue May 22, 2017 · 3 comments
Assignees
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

Comments

@junjunruan
Copy link

junjunruan commented May 22, 2017

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.

@Brocco Brocco added P5 The team acknowledges the request but does not plan to address it, it remains open for discussion severity2: inconvenient feature Issue that requests a new feature labels May 23, 2017
@franktroia
Copy link

Dupe of #6166?

@filipesilva
Copy link
Contributor

Good catch @franktroia, it is indeed a dupe of that issue 👍

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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
Projects
None yet
Development

No branches or pull requests

4 participants