Skip to content

Instantly share code, notes, and snippets.

@SafeerH
Created October 15, 2016 12:50
Show Gist options
  • Save SafeerH/491c2139fb204f9fa1f165f8a2974d77 to your computer and use it in GitHub Desktop.
Save SafeerH/491c2139fb204f9fa1f165f8a2974d77 to your computer and use it in GitHub Desktop.
generator-gulp-angular - How to add fontawesome?

How to add fontawesome?

First, you need install fontawesome through bower

bower install fontawesome

Next, you need add to your scss file this lines (please, check the paths if you change location of generator main.scss file):

$fa-font-path: "../../bower_components/font-awesome/fonts";
@import "../../bower_components/font-awesome/scss/font-awesome.scss";

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

.pipe($.replace('../../bower_components/font-awesome/fonts', '../fonts'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment