Skip to content

webAppManifest : name, shortName #28

@kubale02

Description

@kubale02

Hi,
I'm using your gulp-real-favicon, and setting name and shortName for webAppManifest stop working. Everytime it's end up with empty bracket like:

{
  "name": "",
  "short_name": "",
   .....
}

Here is my setting in gulpfile.babel.js

const web_name = "Chlumec nad Cidlinou";
const FAVICON_DATA_FILE = `${path.dev}faviconData.json`;

function generateFavicon(done) {
	realFavicon.generateFavicon(
		{
			masterPicture: `${path.dev}images/MasterImgManifest.png`,
			dest: `${path.dist}images/local/icons/`,
			iconsPath: `/images/local/icons`,
			design: {
				"desktop": {
					"darkIconTransformation": {
						"type": "background",
						"backgroundColor": "#ffffff",
						"backgroundRadius": 0.7,
						"imageScale": 0.7,
						"brightness": 1
					},
					"darkIconType": "regular",
					"regularIconTransformation": {
						"type": "none",
						"backgroundColor": "#ffffff",
						"backgroundRadius": 0.7,
						"imageScale": 0.7,
						"brightness": 1
					}
				},
				"touch": {
					"transformation": {
						"type": "background",
						"backgroundColor": "#ffffff",
						"backgroundRadius": 0,
						"imageScale": 0.7,
						"brightness": 1
					},
					"appTitle": web_name
				},
				"webAppManifest": {
					"name": web_name,
					"shortName": web_name,
					"transformation": {
						"type": "background",
						"backgroundColor": "#ffffff",
						"backgroundRadius": 0,
						"imageScale": 0.7,
						"brightness": 1
					},
					"backgroundColor": "#ffffff",
					"themeColor": "#ffffff"
				}
			},
			markupFile: FAVICON_DATA_FILE,
		},
		function () {
			done();
		}
	);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions