mirror of
https://github.com/zhigang1992/react-native-vector-icons.git
synced 2026-01-12 22:51:07 +08:00
Update web/webpack setup notes in README (#353)
This commit is contained in:
committed by
Joel Arvidsson
parent
0818eb1b12
commit
3d1f2a5b71
@@ -167,7 +167,9 @@ These steps are optional and only needed if you want to use the `Icon.getImageSo
|
||||
|
||||
### Web (with [webpack](https://webpack.js.org/))
|
||||
|
||||
In your webpack configuration file, add a section to handle ttf files using url-loader (or file-loader)
|
||||
First, you will need to add ``node_modules/react-native-vector-icons`` in your ``babel-loader`` ``include`` definition.
|
||||
|
||||
Then, in your webpack configuration file, add a section to handle ttf files using url-loader (or file-loader)
|
||||
|
||||
```js
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user