Created
July 11, 2014 16:45
-
-
Save Panman82/af02207c8d9149f8d9a2 to your computer and use it in GitHub Desktop.
Using FontAwesome with Ember CLI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// First `bower install --save fontawesome` | |
// Second, make sure you have the required broccoli packages | |
// http://ember-cli.com/managing-dependencies/#other-assets | |
// `npm install --save-dev broccoli-static-compiler` | |
// `npm install --save-dev broccoli-merge-trees` | |
/* global require, module */ | |
var EmberApp = require('ember-cli/lib/broccoli/ember-app'); | |
var PickFiles = require('broccoli-static-compiler'); | |
var MergeTrees = require('broccoli-merge-trees'); | |
var app = new EmberApp(); | |
// Include FontAwesome | |
app.import('vendor/fontawesome/css/font-awesome.min.css'); | |
var fontawesomeFonts = PickFiles('vendor/fontawesome/fonts',{ | |
srcDir: '/', | |
files: ['*'], | |
destDir: '/fonts' | |
}); | |
// module.exports = app.toTree(); | |
module.exports = MergeTrees([app.toTree(), fontawesomeFonts]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment