Skip to content

Commit

Permalink
Update README for Webpack.
Browse files Browse the repository at this point in the history
  • Loading branch information
mperrando authored and jhilden committed Feb 1, 2017
1 parent 245d1bc commit c781f95
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ The conversion process will do a couple of things to make working with the main

You can convert the fontello stylesheets for use with Webpack instead of Sprockets.

If you have not alreday done it, you must add the vendor paths to the resolve roots of Webpack, as well as all the extensions of the font files.
If you have not alreday done it, you must

* add the vendor paths to the resolve roots of Webpack

```javascript
[...]
Expand All @@ -76,13 +78,16 @@ module.exports = {
path.join(railsRoot, './vendor/assets/stylesheets'),
path.join(railsRoot, './vendor/assets/fonts'),
],

extensions: [ [...] '.woff', '.woff2', '.eot']
[...]
},

```
* add optional parameters to the `test` key for the loader of the fonts files
```javascript
test: /\.(png|woff|woff2|eot|ttf|svg)(\?[a-z0-9=.]+)?$/,
```
## Misc
#### Additional fontello stylesheets
Expand Down

0 comments on commit c781f95

Please sign in to comment.