Title: How to have compiled files in a sub-folder · Issue #3932 · angular/angular-cli · GitHub
Open Graph Title: How to have compiled files in a sub-folder · Issue #3932 · angular/angular-cli
X Title: How to have compiled files in a sub-folder · Issue #3932 · angular/angular-cli
Description: Please provide us with the following information: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) All Versions. Please run ng --version. If there's nothing outputted, please run in a Terminal: node --v...
Open Graph Description: Please provide us with the following information: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) All Versions. Please run ng --version. If there's nothing outpu...
X Description: Please provide us with the following information: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) All Versions. Please run ng --version. If there's nothing o...
Opengraph URL: https://github.com/angular/angular-cli/issues/3932
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to have compiled files in a sub-folder","articleBody":"> Please provide us with the following information:\r\n> ---------------------------------------------------------------\r\n\r\n### OS?\r\n> Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)\r\n\r\nAll\r\n\r\n### Versions.\r\n> Please run `ng --version`. If there's nothing outputted, please run in a Terminal: `node --version` and paste the result here:\r\n\r\nangular-cli: 1.0.0-beta.19-3\r\nnode: 6.3.1\r\nos: win32 x64\r\n\r\n### Repro steps.\r\n> Was this an app that wasn't created using the CLI? What change did you do on your code? etc.\r\n\r\nn/a\r\n\r\n### The log given by the failure.\r\n> Normally this include a stack trace and some more information.\r\n\r\nn/a\r\n\r\n### Mention any other details that might be useful.\r\n\r\nI'm hosting a site in AWS S3, and the site, and different API's are passed through Gateway API. \r\n\r\nIn order to have routing working in Angular I have to have a proxy resource which returns the index.html from S3, then have all assets loaded from a sub-directory from /assets/....\r\n\r\nIf I move the files manually I get:\r\n```\r\nUncaught TypeError: e.map is not a function\r\n at t.parameters (https://app.*site*.net/assets/main.80e8f7b5792f4a5fc6e9.bundle.js:1346:663)\r\n at e.parameters (https://app.*site*.net/assets/main.80e8f7b5792f4a5fc6e9.bundle.js:1353:502)\r\n at t.getDependenciesMetadata (https://app.*site*.net/assets/main.80e8f7b5792f4a5fc6e9.bundle.js:638:9225)\r\n at t.getTypeMetadata (https://app.*site*.net/assets/main.80e8f7b5792f4a5fc6e9.bundle.js:638:8543)\r\n at t.getDirectiveMetadata (https://app.*site*.net/assets/main.80e8f7b5792f4a5fc6e9.bundle.js:638:3577)\r\n at https://app.*site*.net/assets/main.80e8f7b5792f4a5fc6e9.bundle.js:638:4705\r\n at Array.forEach (native)\r\n at t.getNgModuleMetadata (https://app.*site*.net/assets/main.80e8f7b5792f4a5fc6e9.bundle.js:638:4564)\r\n at https://app.*site*.net/assets/main.80e8f7b5792f4a5fc6e9.bundle.js:638:4373\r\n at Array.forEach (native)\r\n```\r\n\r\nI could solve this by introducing Cloudfront for the assets then setting up 404 behavior to return the /index.html, but then I can no longer version off the assets in S3.\r\n\r\nBasically without the ability to have sub-folders for the assets, angular-cli becomes useless :(\r\n\r\nI don't want to have to drop the CLI as it's super handy and makes Angular more enjoyable. \r\n\r\n\r\n> ---------------------------------------------------------------\r\n> Thanks! We'll be in touch soon.\r\n","author":{"url":"https://github.com/phillip-haydon","@type":"Person","name":"phillip-haydon"},"datePublished":"2017-01-10T09:17:44Z","url":"https://github.com/angular/angular-cli/issues/3932"}
| 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:7f6ed18e-a9e7-057d-a053-47829ed3cb06 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8BA0:1148D3:433811F:5595199:6B023688 |
| html-safe-nonce | 39c8863d36b2ba0c69f5c7f1c3d4cbc2907fb1af4c78074b3498bd28e9d4cc63 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QkEwOjExNDhEMzo0MzM4MTFGOjU1OTUxOTk6NkIwMjM2ODgiLCJ2aXNpdG9yX2lkIjoiNzY5NTc4Nzg0NTE4NDc5NjI5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cd6a2a7e8d39338e0b2222c09c01928558de57bc1c564db6a1c03783d252263e |
| hovercard-subject-tag | issue:199768757 |
| 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/3932/issue_layout |
| twitter:image | https://opengraph.githubassets.com/89fae2b5bc511a8dd4609788d34b63bf2ca090207fbcf65d9167eae35d011d5e/angular/angular-cli/issues/3932 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/89fae2b5bc511a8dd4609788d34b63bf2ca090207fbcf65d9167eae35d011d5e/angular/angular-cli/issues/3932 |
| og:image:alt | Please provide us with the following information: OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) All Versions. Please run ng --version. If there's nothing outpu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | phillip-haydon |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width