You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No longer possible to use templating to generate index.html #3161
Change index.html to index.html.ejs. Change angular.cli.json#apps[0].index to "index.html.ejs".
Have some <%= %> code in index.html.ejs, but observe that it is emitted as index.html.ejs instead of index.html which it did in beta.19-3.
Mention any other details that might be useful.
The templating feature for generating index.html that was present in beta.19.3 was very useful and allowed us to manipulate the final index.html very easily. I understood that someone wanted to create another filename but I think generating index.html with some simple templating is a quite common case
Index templating was an unintended side effect, it was never a feature we wanted to offer. I'm sorry the update broke your build though. I don't have any alternative for now.
Activity
clydin commentedon Nov 16, 2016
I don't think templating index.html is a supported scenario; similar to using internal functions of a library, expect it to break or disappear.
7er commentedon Nov 17, 2016
Fair enough, what is the "clean" way to build in such a fashion with ng build? Is there another way to hook into the build process?
clydin commentedon Nov 18, 2016
Unfortunately, as of now there is not. An add on system is planned for post-1.0.
filipesilva commentedon Dec 12, 2016
Index templating was an unintended side effect, it was never a feature we wanted to offer. I'm sorry the update broke your build though. I don't have any alternative for now.
angular-automatic-lock-bot commentedon Sep 6, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.