-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
needs: repro stepsWe cannot reproduce the issue with the information givenWe cannot reproduce the issue with the information given
Description
Hello,
I have a problem with svg.
This is my steps:
- run ng build --prod --base-href /my/app/ (it compiles the application into an dist directory)
- load dist directory on server
- navigate the app from browser
- not show svgs
Locally with ng serve it works namely it shows all the svg.
I see that in dist directory there are all the svg.
This is the code in template:
<div class="wrapper-img">
<img src="./assets/img/name.svg" class="img-responsive"/>
</div>
To clarify, I don't have this problem with png or jpg.
How can I fix it? Thanks.
Versions.
@angular/cli: 1.2.1
node: 6.10.1
os: win32 x64
@angular/animations: 4.4.4
@angular/cli: 1.2.1
@angular/common: 4.4.4
@angular/compiler: 4.4.4
@angular/compiler-cli: 4.4.4
@angular/core: 4.4.4
@angular/forms: 4.4.4
@angular/platform-browser: 4.4.4
@angular/platform-browser-dynamic: 4.4.4
@angular/router: 4.4.4
@angular/language-service: 4.4.4
Repro steps.
- Run --> ng build prod --base-href ./
- Load content in dist folder on apache
Desired functionality.
- See svg
Metadata
Metadata
Assignees
Labels
needs: repro stepsWe cannot reproduce the issue with the information givenWe cannot reproduce the issue with the information given