question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ng build base-href issue (angular cli 8)

See original GitHub issue

Hi,

the base-href flag works differently in angular 8. I hope you can help.

In angular 7: ng build --prod app1 --base-href /app1/

after the command all my relative path in the scss are changed to the proper one. source: .example { background: url('/assets/img/picture.png') no-repeat center center; } deployed: .example { background: url('/app1/assets/img/picture.png') no-repeat center center; }

With angular 8 nothing happen: source: .example { background: url('/assets/img/picture.png') no-repeat center center; } deployed: .example { background: url('/assets/img/picture.png') no-repeat center center; }

Thank you!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
achieverprincecommented, Jun 20, 2019

I am also having the same issue.

1reaction
codlercommented, Jun 14, 2019

I have similar problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

ng build base-href issue (angular cli 8) #14587 - GitHub
after the command all my relative path in the scss are changed to the proper one. source: .example { background: url('/assets/img/picture.png') ...
Read more >
Unknown option: '--base-href' Angular 13 ng serve
im creating an angular 13app using CLI i want ...
Read more >
ng build - Angular
Option Description Value Type Default Value ‑‑aot Build using Ahead of Time compilation. boolean true ‑‑base‑href Base url for the application being built. string ‑‑delete‑output‑path Delete...
Read more >
base href angular - Efficient User
Create an angular application using angular CLI. The flow is we are going to generate an angular app using angular CLI. The CLI...
Read more >
How to make Angular CLI built app work from a subfolder
In this article, I'll show you how to make angular build code in a way that you can just drop on any level...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found