node-font-awesome

1.0.2 • Public • Published

Node Font Awesome

Simple font awesome wrapper to allow serving from node.

API

scssPath: path to scss directory for adding as import path lessPath: path to less directory for adding as import path css: path to font-awesome.css file. fonts: glob path to all files in fonts directory.

Usage

Moving Fonts:

var gulp = require('gulp');
var fontAwesome = require('node-font-awesome');
 
gulp.task('fonts', function() {
  gulp.src(fontAwesome.fonts)
    .pipe(gulp.dest('./app/fonts'));
});

Adding To SASS Paths

var gulp = require('gulp');
var fontAwesome = require('node-font-awesome');
 
gulp.task('sass', function () {
  gulp.src('./sass/main.scss')
    .pipe(sass({
      includePaths: [fontAwesome.scssPath]
    }))
    .pipe(sourcemaps.write('./'))
    .pipe(gulp.dest('./app/css'));
});

With Bourbon

var gulp = require('gulp');
var fontAwesome = require('node-font-awesome');
var bourbon = require('node-bourbon')
 
gulp.task('sass', function () {
  gulp.src('./sass/main.scss')
    .pipe(sass({
      includePaths: bourbon.with(fontAwesome.scssPath)
    }))
    .pipe(sourcemaps.write('./'))
    .pipe(gulp.dest('./app/css'));
});

Package Sidebar

Install

npm i node-font-awesome

Weekly Downloads

99

Version

1.0.2

License

ISC

Last publish

Collaborators

  • jisaacks