forked from MapComplete/MapComplete
		
	Move webmanifests to 'public'-directory, should fix #1293
This commit is contained in:
		
							parent
							
								
									a8ccf2fcc5
								
							
						
					
					
						commit
						c2113844e3
					
				
					 3 changed files with 5 additions and 5 deletions
				
			
		|  | @ -353,7 +353,7 @@ async function main(): Promise<void> { | |||
|         const { manifest, whiteIcons } = await createManifest(layout, alreadyWritten) | ||||
|         const manif = JSON.stringify(manifest, undefined, 2) | ||||
|         const manifestLocation = encodeURIComponent(layout.id.toLowerCase()) + ".webmanifest" | ||||
|         writeFile(manifestLocation, manif, err) | ||||
|         writeFile("public/" + manifestLocation, manif, err) | ||||
| 
 | ||||
|         // Create a landing page for the given theme
 | ||||
|         const landing = await createLandingPage(layout, manifest, whiteIcons, alreadyWritten) | ||||
|  | @ -377,7 +377,7 @@ async function main(): Promise<void> { | |||
|     ) | ||||
| 
 | ||||
|     const manif = JSON.stringify(manifest, undefined, 2) | ||||
|     writeFileSync("index.manifest", manif) | ||||
|     writeFileSync("public/index.webmanifest", manif) | ||||
| } | ||||
| 
 | ||||
| main().then(() => { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue