node-font-awesome
v1.0.2
Published
Font Awesome wrapper to make serveable from node
Downloads
411
Maintainers
Readme
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'));
});