Skip to content

Instantly share code, notes, and snippets.

@Panman82
Created July 11, 2014 16:45
Show Gist options
  • Save Panman82/af02207c8d9149f8d9a2 to your computer and use it in GitHub Desktop.
Save Panman82/af02207c8d9149f8d9a2 to your computer and use it in GitHub Desktop.
Using FontAwesome with Ember CLI
// 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