-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgruntfile.js
32 lines (29 loc) · 961 Bytes
/
gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
var fontName = 'fonterrific';
var fontClass = 'ft';
var fontClassPrefix = 'ft-';
module.exports = function(grunt) {
grunt.initConfig({
webfont: {
icons: {
src: 'icons/svg/*.svg',
dest: 'docs/font',
destCss: 'docs/',
options: {
fontBaseName: fontName,
fontFilename: fontName,
normalize: true,
template: 'templates/fonterrific.css',
htmlDemoTemplate: 'templates/index.html',
htmlDemoFilename: 'index',
templateOptions: {
fontBaseName: fontName,
baseClass: fontClass,
classPrefix: fontClassPrefix
}
}
}
}
});
grunt.loadNpmTasks('grunt-webfont');
grunt.registerTask('default', ['webfont']);
};