1
+ 'use strict' ;
2
+ // File where the favicon markups are stored
3
+ // Generate the icons. This task takes a few seconds to complete.
4
+ // You should run it at least once to create the icons. Then,
5
+ // you should run it whenever RealFaviconGenerator updates its
6
+ // package (see the check-for-favicon-update task below).
7
+
8
+ module . exports = function ( ) {
9
+ $ . gulp . task ( 'favicon-generate' , function ( done ) {
10
+ $ . gp . realFavicon . generateFavicon ( {
11
+ masterPicture : './source/favicon/icon.png' ,
12
+ dest : $ . config . root + '/favicon' ,
13
+ iconsPath : 'favicon' ,
14
+ design : {
15
+ ios : {
16
+ pictureAspect : 'backgroundAndMargin' ,
17
+ backgroundColor : $ . config . app . color ,
18
+ margin : '14%' ,
19
+ assets : {
20
+ ios6AndPriorIcons : true ,
21
+ ios7AndLaterIcons : true ,
22
+ precomposedIcons : true ,
23
+ declareOnlyDefaultIcon : true
24
+ } ,
25
+ appName : $ . config . app . name
26
+ } ,
27
+ desktopBrowser : { } ,
28
+ windows : {
29
+ pictureAspect : 'noChange' ,
30
+ backgroundColor : $ . config . app . color ,
31
+ onConflict : 'override' ,
32
+ assets : {
33
+ windows80Ie10Tile : true ,
34
+ windows10Ie11EdgeTiles : {
35
+ small : true ,
36
+ medium : true ,
37
+ big : true ,
38
+ rectangle : true
39
+ }
40
+ } ,
41
+ appName : $ . config . app . name
42
+ } ,
43
+ androidChrome : {
44
+ pictureAspect : 'backgroundAndMargin' ,
45
+ margin : '17%' ,
46
+ backgroundColor : $ . config . app . color ,
47
+ themeColor : $ . config . app . color ,
48
+ manifest : {
49
+ name : $ . config . app . name ,
50
+ display : 'standalone' ,
51
+ orientation : 'notSet' ,
52
+ onConflict : 'override' ,
53
+ declared : true
54
+ } ,
55
+ assets : {
56
+ legacyIcon : true ,
57
+ lowResolutionIcons : true
58
+ }
59
+ } ,
60
+ safariPinnedTab : {
61
+ pictureAspect : 'blackAndWhite' ,
62
+ threshold : 75 ,
63
+ themeColor : $ . config . app . color
64
+ }
65
+ } ,
66
+ settings : {
67
+ scalingAlgorithm : 'Mitchell' ,
68
+ errorOnImageTooSmall : false
69
+ } ,
70
+ markupFile : $ . config . favicon_data_file
71
+ } , function ( ) {
72
+ done ( ) ;
73
+ } ) ;
74
+ } ) ;
75
+ } ;
0 commit comments