Skip to content

Instantly share code, notes, and snippets.

@jeremywrowe
Last active August 29, 2015 14:19
Show Gist options
  • Save jeremywrowe/4755a9558b594c231313 to your computer and use it in GitHub Desktop.
Save jeremywrowe/4755a9558b594c231313 to your computer and use it in GitHub Desktop.
config/environment.js
var fs = require('fs'),
path = './bower_components/fontawesome/scss/_icons.scss',
regex = /\.#{\$fa-css-prefix}([-|\w]+):before/g,
match,
data;
ENV.APP.awesomeness = [];
data = fs.readFileSync(path, 'utf8');
while(match = regex.exec(data)) {
if(match[1]) {
ENV.APP.awesomeness.push("fa" + match[1]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment