mardi 16 avril 2019

Dynamically added assets prefix in the image URL - Ember-CLI

I am trying to load the app by using ember serve.some of the images or not found error getting. In CSS : background-image: url(assets/images/image.svg); its redirected to http://localhost:4200/assets/assets/images/image.svg 404 (Not Found) bcz in this url two assests name added.

when add '/' in the prefix of url am able to see the image in the app. background-image: url(/assets/images/image.svg); its redirected to http://localhost:4200/assets/images/image.svg

Kindly help anyone pls...




Aucun commentaire:

Enregistrer un commentaire