An extension of iconic Font Awesome that maintains the character encoding during the compile.
So if your stylesheet is filled with a bunch of blocks '' then this is the package for you!
Font Awesome version 4.7.0
@include mixin _fa-icon(plus-square-o)
npm install sassy-font-awesome --save
-
link the module in your main .scss file
@import "./node_modules/sassy-font-awesome/font-awesome"
- Create/Open gulpfile.js
- Create the task to copy the fonts to the public directory
gulp.task( "copy-fonts", function() { gulp.src("node_modules/sassy-font-awesome/fonts/fontawesome-webfont.*") .pipe( gulp.dest("./fonts/font-awesome/") ); });
-
(optional) Create/Add to a build task
gulp.task( "build", [ "copy-fonts" ] ); gulp.task( "default", function() { gulp.start("build"); });