0
votes

I have Angular 2 app generated by Angular CLI tool.

When I change base to any value in index.html:

<base href="test">

and build the app (ng build) the resulted index.html has:

<base href="/">

So my question is: How can I change base in index.html?

Thanks for any help.

1
The base URL is used to resolve relative URLs in the page. Making the base URL relative as well does not make any sense. What do you want to achieve?Henry
When building the electron app the base has to by changed to "./" value.Tomas Marik

1 Answers

1
votes