sturmenta / react-web-vector-icons

(out of maintenance) a minimized version of react-native-vector-icons for use in web
MIT License
38 stars 11 forks source link

create-react-app vs react-js-vector-icon #1

Closed aprather51 closed 6 years ago

aprather51 commented 6 years ago

Following steps...

2 - Add require of fonts for webpack in your index.js file

require('react-js-vector-icons/fonts');

How could this achieve when using create-react-app without ejection? Perhaps could we use this method ??

import Icon, { Octagon } from 'react-js-vector-icons/fonts';
sturmenta commented 6 years ago

@aprather51 What do you mean by "without ejection"?

Sorry for delaying so much in answering, being honest I must have overlooked the issue