Title: Source maps not loading for script added through .angular-cli.json · Issue #7226 · angular/angular-cli · GitHub
Open Graph Title: Source maps not loading for script added through .angular-cli.json · Issue #7226 · angular/angular-cli
X Title: Source maps not loading for script added through .angular-cli.json · Issue #7226 · angular/angular-cli
Description: Bug Report or Feature Request (mark with an x) - [x] bug report - [ ] feature request Versions. @angular/cli: 1.2.6 node: 6.9.5 os: win32 x64 @angular/animations: 4.3.1 @angular/common: 4.3.1 @angular/compiler: 4.3.1 @angular/compiler-cl...
Open Graph Description: Bug Report or Feature Request (mark with an x) - [x] bug report - [ ] feature request Versions. @angular/cli: 1.2.6 node: 6.9.5 os: win32 x64 @angular/animations: 4.3.1 @angular/common: 4.3.1 @angu...
X Description: Bug Report or Feature Request (mark with an x) - [x] bug report - [ ] feature request Versions. @angular/cli: 1.2.6 node: 6.9.5 os: win32 x64 @angular/animations: 4.3.1 @angular/common: 4.3.1 @angu...
Opengraph URL: https://github.com/angular/angular-cli/issues/7226
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Source maps not loading for script added through .angular-cli.json","articleBody":"\u003c!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION YOUR ISSUE MIGHT BE CLOSED WITHOUT INVESTIGATING\r\n-->\r\n### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [x] bug report\r\n- [ ] feature request\r\n```\r\n\r\n### Versions.\r\n@angular/cli: 1.2.6\r\nnode: 6.9.5\r\nos: win32 x64\r\n@angular/animations: 4.3.1\r\n@angular/common: 4.3.1\r\n@angular/compiler: 4.3.1\r\n@angular/compiler-cli: 4.3.1\r\n@angular/core: 4.3.1\r\n@angular/forms: 4.3.1\r\n@angular/http: 4.3.1\r\n@angular/platform-browser: 4.3.1\r\n@angular/platform-browser-dynamic: 4.3.1\r\n@angular/router: 4.3.1\r\n@angular/upgrade: 4.3.1\r\n@angular/cli: 1.2.6\r\n@angular/language-service: 4.3.1\r\n\r\n### Repro steps.\r\nIn .angular-cli.json, scripts section I've got reference to legacy library written in AngularJS with IFFEies which is bundled with gulp-uglify. \r\n\r\n```\r\n \"scripts\": [\r\n \"../node_modules/legacy-lib/lib.js\"\r\n ]\r\n```\r\nlegacy-lib also contains source maps for lib (\"../node_modules/legacy-lib/lib.js.map\") which are generated using gulp-sourcemaps. \r\n\r\nFunctionality of this legacy library is used within Angular CLI based hybrid app. When using \"ng serve -o\" library is loaded and works fine but I can only see minified version in dev tools, I don't see source maps file.\r\n\r\n### Desired functionality.\r\nI'd like source maps for legacy library to be included in build and picked up by browser dev tools so I can debug. This sounds like common scenario to me so I'm probably just missing something but I can't find anything relevant in docs or issues. I'd appreciate guidance on how to enable this functionality.\r\n\r\n### Mention any other details that might be useful.\r\nLegacy library is based on https://github.com/johnpapa/generator-hottowel and it's build system.\r\n\r\n","author":{"url":"https://github.com/adamlubek","@type":"Person","name":"adamlubek"},"datePublished":"2017-08-01T12:29:43Z","url":"https://github.com/angular/angular-cli/issues/7226"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1b6d6950-bf18-3064-8d0b-1153c9cdc5e2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D458:3B27CE:1AE2813:23568C4:6B055B63 |
| html-safe-nonce | b6f4f824cf7dfa7cc5ac7d84c012417db9fbcf8bcf5df69c3b00c1c1ca31ffc2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDU4OjNCMjdDRToxQUUyODEzOjIzNTY4QzQ6NkIwNTVCNjMiLCJ2aXNpdG9yX2lkIjoiMTcwNjc1OTA2MzkzNDk1MDI0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 54bf707141a11d30749530a05e7883547f7147f0222811946a781af421cb45e4 |
| hovercard-subject-tag | issue:247052618 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/7226/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e8909b6ba48ed1d068d0be49790af0028ef5249111643fc060ff345753fd8e25/angular/angular-cli/issues/7226 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e8909b6ba48ed1d068d0be49790af0028ef5249111643fc060ff345753fd8e25/angular/angular-cli/issues/7226 |
| og:image:alt | Bug Report or Feature Request (mark with an x) - [x] bug report - [ ] feature request Versions. @angular/cli: 1.2.6 node: 6.9.5 os: win32 x64 @angular/animations: 4.3.1 @angular/common: 4.3.1 @angu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | adamlubek |
| hostname | github.com |
| expected-hostname | github.com |
| None | a79a02b7e7546ea306864e922ed2103ef4c04fac63168e11c2b2d4d816793080 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 10dff83edfd4f3617a7792a152d44991587b434c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width