Last active
August 29, 2015 14:06
-
-
Save henrahmagix/0216e8ad5f45e8b697a3 to your computer and use it in GitHub Desktop.
Test font awesome in grunt-webfont
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
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'] | |
} | |
} | |
} | |
}) | |
}; |
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
{ | |
"name": "grunt-webfont-with-font-awesome", | |
"version": "0.0.0", | |
"devDependencies": { | |
"grunt": "0.4.5", | |
"grunt-webfont": "0.4.8" | |
} | |
} |
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
grunt webfont | |
open css/icons.html |
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
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