Skip to content

Instantly share code, notes, and snippets.

@henrahmagix
Last active August 29, 2015 14:06
Show Gist options
  • Save henrahmagix/0216e8ad5f45e8b697a3 to your computer and use it in GitHub Desktop.
Save henrahmagix/0216e8ad5f45e8b697a3 to your computer and use it in GitHub Desktop.
Test font awesome in grunt-webfont
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-webfont');
grunt.initConfig({
webfont: {
icons: {
src: 'black/svg/file-{audio,image,movie,pdf,excel,archive,word}-o.svg',
dest: 'icons',
destCss: 'css/',
options: {
hashes: false,
// Use a demo file to view the icons.
// htmlDemo: false,
// Ligatures don't seem to render in Chrome for these SVG files.
// ligatures: true,
// woff doesn't show correctly in Chrome, so limit to ttf.
types: ['ttf']
}
}
}
})
};
{
"name": "grunt-webfont-with-font-awesome",
"version": "0.0.0",
"devDependencies": {
"grunt": "0.4.5",
"grunt-webfont": "0.4.8"
}
}
grunt webfont
open css/icons.html
git clone git@github.com:CodeCharmLtd/Font-Awesome-SVG-PNG.git
cd Font-Awesome-SVG-PNG
npm install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment