Skip to content

Instantly share code, notes, and snippets.

@ethyde
Created December 10, 2014 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ethyde/001d92e063f348cfb81e to your computer and use it in GitHub Desktop.
Save ethyde/001d92e063f348cfb81e to your computer and use it in GitHub Desktop.
Config grunt-webfont task under Windows O.S.
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']);
};
{
"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