-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGruntfile.js
54 lines (50 loc) · 1.27 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
module.exports = function(grunt) {
'use strict';
grunt.loadNpmTasks('grunt-webfont');
grunt.initConfig({
webfont: {
ios: {
src: 'src/ios/*.svg',
dest: 'dist/wavicon/ios/fonts',
destCss: 'dist/wavicon/ios/css',
options: {
hashes: false,
fontBaseName: 'wavicon',
fontFamilyName: 'wavicon',
templateOptions: {
baseClass: "wi",
classPrefix: "wi-",
mixinPrefix: "wi-"
},
// stylesheet: 'css',
// fontFilename: 'wavicon',
htmlDemoTemplate: 'templates/demo.html',
font: 'wavicon'
}
},
android: {
src: 'src/android/*.svg',
dest: 'dist/wavicon/android/fonts',
destCss: 'dist/wavicon/android/css',
options: {
hashes: false,
fontBaseName: 'wavicon',
fontFamilyName: 'wavicon',
templateOptions: {
baseClass: "wi",
classPrefix: "wi-",
mixinPrefix: "wi-"
},
// stylesheet: 'css',
// fontFilename: 'wavicon',
htmlDemoTemplate: 'templates/demo.html',
font: 'wavicon'
}
}
},
clean: ['dist']
});
grunt.loadTasks('tasks');
grunt.registerTask('default', ['webfont'/*, 'test', 'clean'*/]);
grunt.registerTask('build', ['default']);
};