Title: file paths inside index.html do not support custom output paths · Issue #16131 · angular/angular-cli · GitHub
Open Graph Title: file paths inside index.html do not support custom output paths · Issue #16131 · angular/angular-cli
X Title: file paths inside index.html do not support custom output paths · Issue #16131 · angular/angular-cli
Description: 🐞 Bug report Command - [ ] new - [x] build - [ ] serve - [ ] test - [ ] e2e - [ ] generate - [ ] add - [ ] update - [ ] lint - [ ] xi18n - [ ] run - [ ] config - [ ] help - [ ] version - [ ] doc Is this a regression? I don't know for sur...
Open Graph Description: 🐞 Bug report Command - [ ] new - [x] build - [ ] serve - [ ] test - [ ] e2e - [ ] generate - [ ] add - [ ] update - [ ] lint - [ ] xi18n - [ ] run - [ ] config - [ ] help - [ ] version - [ ] doc Is...
X Description: 🐞 Bug report Command - [ ] new - [x] build - [ ] serve - [ ] test - [ ] e2e - [ ] generate - [ ] add - [ ] update - [ ] lint - [ ] xi18n - [ ] run - [ ] config - [ ] help - [ ] version - [ ] doc Is...
Opengraph URL: https://github.com/angular/angular-cli/issues/16131
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"file paths inside index.html do not support custom output paths","articleBody":"\u003c!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅\r\n\r\nOh hi there! 😄\r\n\r\nTo expedite issue processing please search open and closed issues before submitting a new one.\r\nExisting issues often contain information about workarounds, resolution, or progress updates.\r\n\r\n🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅--\u003e\r\n\r\n\r\n# 🐞 Bug report\r\n\r\n### Command\r\n\r\n```\r\n- [ ] new\r\n- [x] build\r\n- [ ] serve\r\n- [ ] test\r\n- [ ] e2e\r\n- [ ] generate\r\n- [ ] add\r\n- [ ] update\r\n- [ ] lint\r\n- [ ] xi18n\r\n- [ ] run\r\n- [ ] config\r\n- [ ] help\r\n- [ ] version\r\n- [ ] doc\r\n```\r\n\r\n### Is this a regression?\r\n\r\nI don't know for sure, but I don't think so.\r\n\r\n### Description\r\n\r\nThe CLI currently allows to modify the output path of the `index.html` file. This works fine. Unfortunately it only modifies the output path and doesn't modify the file paths which are used inside the `index.html` file to reference the JavaScript files.\r\n\r\n## 🔬 Minimal Reproduction\r\n\r\n* create a new project `npx @angular/cli new my-project`\r\n* modify the `angular.json` at `projects \u003e my-project \u003e architect \u003e build \u003e index`\r\n\r\n```json\r\n\"index\": {\r\n \"input\": \"src/index.html\",\r\n \"output\": \"subdirectory/index.html\"\r\n}\r\n```\r\n\r\n* run `ng build`\r\n* inspect the file located at `dist/my-project/subdirectory/index.html`\r\n* it references the JavaScript files as if they would be in the same folder\r\n\r\n## 🔥 Exception or Error\r\n\r\nIt doesn't throw an error.\r\n\r\n## 🌍 Your Environment\r\n\u003cpre\u003e\u003ccode\u003e\r\nAngular CLI: 8.3.18\r\nNode: 12.13.0\r\nOS: darwin x64\r\nAngular: 8.2.13\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... language-service, platform-browser, platform-browser-dynamic\r\n... router\r\n\r\nPackage Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.803.18\r\n@angular-devkit/build-angular 0.803.18\r\n@angular-devkit/build-optimizer 0.803.18\r\n@angular-devkit/build-webpack 0.803.18\r\n@angular-devkit/core 8.3.18\r\n@angular-devkit/schematics 8.3.18\r\n@angular/cli 8.3.18\r\n@ngtools/webpack 8.3.18\r\n@schematics/angular 8.3.18\r\n@schematics/update 0.803.18\r\nrxjs 6.4.0\r\ntypescript 3.5.3\r\nwebpack 4.39.2\r\n\u003c/code\u003e\u003c/pre\u003e\r\n\r\n**Anything else relevant?**\r\n\r\nI'm happy to provide a pull request for this if you agree that this is a bug.\r\n","author":{"url":"https://github.com/chrisguttandin","@type":"Person","name":"chrisguttandin"},"datePublished":"2019-11-09T11:22:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/16131/angular-cli/issues/16131"}
| 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:1e466125-5e8e-e018-81b5-d9a5deceb8cd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D44C:36D363:1A3A109:247C0B9:6964F53C |
| html-safe-nonce | 38c314c977c90bcf1ec704af3cc4ad8b70e5762c6022a65c7c2d5b251dc9de36 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDRDOjM2RDM2MzoxQTNBMTA5OjI0N0MwQjk6Njk2NEY1M0MiLCJ2aXNpdG9yX2lkIjoiNTc4MTIwMjEzMTY3NzkzNDkwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b74309153cd909d27894bae38071947e3039e51450c67c12c6c63ce36c805b2a |
| hovercard-subject-tag | issue:520395077 |
| 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/16131/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4ac0f3fc3afda3566fc42e8df73e6fbbc6ee98fc7794c4389782d8cc6cbb3455/angular/angular-cli/issues/16131 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4ac0f3fc3afda3566fc42e8df73e6fbbc6ee98fc7794c4389782d8cc6cbb3455/angular/angular-cli/issues/16131 |
| og:image:alt | 🐞 Bug report Command - [ ] new - [x] build - [ ] serve - [ ] test - [ ] e2e - [ ] generate - [ ] add - [ ] update - [ ] lint - [ ] xi18n - [ ] run - [ ] config - [ ] help - [ ] version - [ ] doc Is... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chrisguttandin |
| hostname | github.com |
| expected-hostname | github.com |
| None | 003e962bf5ca78f3f8f71db2461c6a7f9cfcbe99b480d6aeddaef78d33e9161a |
| 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 | 21cbf6733480c5c09366f15b8dc8b6953472172a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width