ionic-team / ionic-team/ionicons

How to set location of icons svgs in deployment? (resourcesUrl)

Ouverte
#665 4 commentaires 7 réactions 0 personnes assignées Voir sur GitHub
help wanted type: bug
Langage dominant
TypeScript
Étoiles
18.2k
Forks
2.1k
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

I am using ionicons with Ionic 4 and angular. I would like to change the deployment to put the ionicons svg files into a different directory than `svg/`. I know how to do this in angular.json but I can't figure out how to tell ionicons about the new location.

There is a resourcesUrl property inside the ion-icon component that seems to figure in [1] if I could set it. I don't understand how to set it through so all components get the setting.

Does anyone know how to override the resourcesUrl path so I can point to a different location?

1: https://github.com/ionic-team/ionicons/blob/master/src/components/icon/icon.tsx#L181

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.