Title: Provide config to rename `index.html` in `dist` folder · Issue #2241 · angular/angular-cli · GitHub
Open Graph Title: Provide config to rename `index.html` in `dist` folder · Issue #2241 · angular/angular-cli
X Title: Provide config to rename `index.html` in `dist` folder · Issue #2241 · angular/angular-cli
Description: This is a feature request. TL;DR; As a full-stack developer, I want to be able to rename the file extension of the generated HTML file in dist folder, so I can easily integrate it into my server-side project. Right now (beta-15), I can r...
Open Graph Description: This is a feature request. TL;DR; As a full-stack developer, I want to be able to rename the file extension of the generated HTML file in dist folder, so I can easily integrate it into my server-si...
X Description: This is a feature request. TL;DR; As a full-stack developer, I want to be able to rename the file extension of the generated HTML file in dist folder, so I can easily integrate it into my server-si...
Opengraph URL: https://github.com/angular/angular-cli/issues/2241
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Provide config to rename `index.html` in `dist` folder","articleBody":"This is a **feature request**.\n\n\u003e **TL;DR;** As a full-stack developer, I want to be able to rename the file extension of the generated HTML file in `dist` folder, so I can easily integrate it into my server-side project.\n\nRight now (beta-15), I can rename the source HTML file in `angular-cli.json` using the `index` property, but the output file in `dist` is still called `index.html`.\n\nI don't care whether the implementation chooses to carry the name forward from the `index` property, or introduce another property for it.\n## Use Case:\n\nI need to use this inside an ASP .NET MVC application (.NET 4.5 not .NET Core). \n\nMy plan is to:\n1. Include the folder as sub-folder in the project, called say `client`.\n2. Set redirects in the root server-side project to go to `client/dist` when it's not matching files / folders or APIs\n3. Run `ng build --watch` for dev, while IIS is looking at my parent server-side project folder\n\nBut I may well end up needing a legacy layout file, and some other server-side code to run before returning the HTML file, so my plan is to have a root server-side rout + MVC controller that returns the HTML file, using the Razor template engine (a `.cshtml` file, like `Views/Home/Index.cshtml`), which will still have the layout.\n\nBut I still want Webpack to generate the `script` tag etc. So, I want to:\n1. strip everything from the CLI project `index.html` file\n2. Include the generated file, which only has the generated `script` tag etc, in the server-side `Index.cshtml` file.\n\nBut to include it in my server template, it's way easier for me if its extension was `cshtml` not `html`. It's doable without that, but it's too much config, and part of this is showing the guys here how super easy it is to include Angular 2 seamlessly.\n\n**P.S.**\n\nSorry if this sounds like a very complex scenario, I believe it really isn't, and it's awesome to have something like this to integrate Angular 2 with server-side frameworks; and the change -I hope- isn't a big one really to support this.\n\nThanks a lot for creating such an awesome starter that makes developing Angular 2 much easier, and making it available for everyone for free, while you definitely do not have to, and owe nothing to any of us.\n","author":{"url":"https://github.com/Meligy","@type":"Person","name":"Meligy"},"datePublished":"2016-09-20T05:49:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/2241/angular-cli/issues/2241"}
| 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:9c59aa8b-def9-9bc7-fc0e-353e7eca66ce |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DEBE:CCF64:163CD90:1D2FF5C:6992C1D8 |
| html-safe-nonce | cb913e9c028bfc10ea894295a1e9789163cfbc5fc240531676869e9388a5e687 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERUJFOkNDRjY0OjE2M0NEOTA6MUQyRkY1Qzo2OTkyQzFEOCIsInZpc2l0b3JfaWQiOiIyNjEzNTg0ODI2NTYxOTA1MTEyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ed43cbe87e58526d8226660ab22ba87f985f0ae83cb7b64740875f33709546af |
| hovercard-subject-tag | issue:177970579 |
| 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/2241/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e44de54ed83a9684b95fad32918efd7e924d61d87380cc9bed4c4369676beabe/angular/angular-cli/issues/2241 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e44de54ed83a9684b95fad32918efd7e924d61d87380cc9bed4c4369676beabe/angular/angular-cli/issues/2241 |
| og:image:alt | This is a feature request. TL;DR; As a full-stack developer, I want to be able to rename the file extension of the generated HTML file in dist folder, so I can easily integrate it into my server-si... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Meligy |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| 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 | 84dcb133269e3cfe6e0296cc85fbacb92cae92bb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width