ionic-team/ionicons

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

Open

#665 建立於 2019年2月22日

在 GitHub 查看
 (4 留言) (7 反應) (0 負責人)TypeScript (2,083 fork)batch import
help wantedtype: bug

倉庫指標

Star
 (17,256 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南