-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Description
First off, let me start by saying that the level of detail for this icons is insane and I'm all so grateful. ❤️
However depending on unpkg.com
or any other CDN to be honest to serve the icons is not ideal. As some mention on previous tickets you can't have them if your connection drops or if the CDN is down, which is the case at the moment of writting this issue.
https://www.dropbox.com/s/ntlwzifbnbfcjsv/Screenshot%202018-12-20%2023.46.01.png?dl=0
Anyone using ionicons either the icon font or the web component have their website / app in limbo.
Since this is on npm, I wonder if it would be a good option to be able to import the icons we need and let them be imported using webpack or rollup or whatever the user is using.
Imagining a React scenario I can see this working:
import React, { PureComponent } from 'react';
import { getIcon } from 'ionicons';
const PageIcon = getIcon('page');
const example = props => (
<div>
<PageIcon />
</div>
);