meshviewer/gulp/tasks/favicon.js

66 lines
1.7 KiB
JavaScript
Raw Normal View History

module.exports = function (gulp, plugins, config) {
return function javascript(cb) {
plugins.realFavicon.generateFavicon({
masterPicture: 'assets/logo.svg',
dest: 'assets/favicon',
iconsPath: '.',
design: {
ios: {
pictureAspect: 'backgroundAndMargin',
2017-06-04 14:41:13 +00:00
backgroundColor: '#ffffff',
margin: '14%',
assets: {
ios6AndPriorIcons: false,
ios7AndLaterIcons: false,
precomposedIcons: false,
declareOnlyDefaultIcon: true
},
appName: 'Meshviewer'
},
desktopBrowser: {},
windows: {
2017-06-04 14:41:13 +00:00
pictureAspect: 'whiteSilhouette',
backgroundColor: '#dc0067',
onConflict: 'override',
assets: {
windows80Ie10Tile: false,
windows10Ie11EdgeTiles: {
small: true,
medium: true,
big: true,
rectangle: false
}
},
appName: 'Meshviewer'
},
androidChrome: {
// pictureAspect: 'shadow',
themeColor: '#dc0067',
manifest: {
name: 'Meshviewer',
display: 'standalone',
2017-06-04 14:41:13 +00:00
orientation: 'portrait',
onConflict: 'override',
declared: true
},
assets: {
legacyIcon: false,
lowResolutionIcons: false
}
},
safariPinnedTab: {
pictureAspect: 'silhouette',
themeColor: '#dc0067'
}
},
settings: {
compression: 2,
scalingAlgorithm: 'Mitchell',
errorOnImageTooSmall: false
},
markupFile: config.faviconData
});
return cb();
};
};