Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(font-awesome): add overrides #1101

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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