Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions docs/recipes/add-fontawesome.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

## [#337](https://github.com/Swiip/generator-gulp-angular/issues/337)

First, you need install fontawesome through bower
First, you need install Font Awesome through bower:

```bash
bower install fontawesome
bower install font-awesome
```

Next, you need add to your scss file this lines (please, check the paths if you
Expand All @@ -15,6 +16,20 @@ $fa-font-path: "../../bower_components/font-awesome/fonts";
@import "../../bower_components/font-awesome/scss/font-awesome.scss";
```

Then you need to override Font Awesome's `main` property so that the fonts are
included in builds. Edit your local `bower.json` to include:

```bower
"overrides": {
"font-awesome": {
"main": [
"scss/font-awesome.scss",
"fonts/*"
]
}
}
```

Finally, you need add this pipeline in `gulp/build.js`, in `html` task:

```js
Expand Down