Skip to content

No longer possible to use templating to generate index.html #3161

Closed

Description

@7er

d3fd8b0 broke my build

OS

Linux Ubuntu 16.04

Versions.

1.0.0-beta.20-4

Repro steps.

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

Activity

  1. clydin commented on Nov 16, 2016

    @clydin
    Member

    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.

  2. 7er commented on Nov 17, 2016

    @7er
    Author

    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?

  3. clydin commented on Nov 18, 2016

    @clydin
    Member

    Unfortunately, as of now there is not. An add on system is planned for post-1.0.

  4. filipesilva commented on Dec 12, 2016

    @filipesilva
    Contributor

    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.

  5. angular-automatic-lock-bot commented on Sep 6, 2019

    @angular-automatic-lock-bot

    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.

  6. locked and limited conversation to collaborators on Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions