ionic-team / ionic-team/ionicons

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

Abierto
#665 4 comentarios 7 reacciones 0 asignados Ver en GitHub
help wanted type: bug
Lenguaje dominante
TypeScript
Estrellas
18.2k
Forks
2.1k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Start with the resourcesUrl property in src/components/icon/icon.tsx and compare it with the asset configuration in angular.json. Trace how the icon component receives or determines this path, then establish how a deployment can set a shared location for all components.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
angular, typescript
Área
frontend, web-dev
Tipo de issue
Nueva funcionalidad
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.