Created
December 10, 2014 16:29
-
-
Save ethyde/001d92e063f348cfb81e to your computer and use it in GitHub Desktop.
Config grunt-webfont task under Windows O.S.
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) { | |
'use strict'; | |
// load all grunt-* task listed in package.json in one line. | |
require('load-grunt-tasks')(grunt); | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
webfont: { | |
icons: { | |
src: 'app/svg/*.svg', | |
dest: 'dist/fonts', | |
destCss: 'dist/styles', | |
options: { | |
engine: 'node', // needed for webfont generation with Windows | |
stylesheet: 'less' | |
} | |
} | |
} | |
}); | |
// This is the default task being executed if Grunt | |
// is called without any further parameter. | |
grunt.registerTask('default', ['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
{ | |
"name": "test", | |
"version": "0.0.0", | |
"private": true, | |
"devDependencies": { | |
"load-grunt-tasks": "~1.0.0", | |
"grunt": "~0.4.2", | |
"grunt-webfont": "~0.4.8" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment