Skip to content

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

Closed
@junjunruan

Description

@junjunruan

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.

Metadata

Metadata

Assignees

Labels

P5The team acknowledges the request but does not plan to address it, it remains open for discussionfeatureIssue that requests a new featureseverity2: inconvenient

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions