Angular-cli: Add customization options for HtmlWebpackPlugin

Created on 1 Dec 2016  路  4Comments  路  Source: angular/angular-cli

Currently app configuration doesn't allow to configure HtmlWebpackPlugin to use it's templating features.

It might be useful to have separate option in app config to specify different value for template option,
e.g. index.ejs to use ejs templates and allow HtmlWebpackPlugin to process it and generate index.html.

Also it would be useful to know the current environment inside the template to conditionally add things to resulting index.html.

Most helpful comment

at the moment.

This was >1 year ago. Care to re-consider this decision? We'd like to customize this, too, but don't want to inject, since we 鉂わ笍 the Angular CLI.

All 4 comments

I understand that there are uses for such a feature, but it's something we want to add at the moment.

at the moment.

This was >1 year ago. Care to re-consider this decision? We'd like to customize this, too, but don't want to inject, since we 鉂わ笍 the Angular CLI.

this is a real bummer for adding tracking to a site that requires different environments. it pretty much prevents loading 3rd party tracking products using the index file to make sure they load as fast as possible

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._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brtnshrdr picture brtnshrdr  路  3Comments

jbeckton picture jbeckton  路  3Comments

naveedahmed1 picture naveedahmed1  路  3Comments

MateenKadwaikar picture MateenKadwaikar  路  3Comments

rajjejosefsson picture rajjejosefsson  路  3Comments