![]() Updates your manifest.json and index.html files automatically for declaring generated image assets □ Generates both icons and splash screens with optional -icon-only -splash-only -landscape-only and -portrait-only flags ✨ Having Puppeteer at its core enables lots of possibilities. ![]() PWA Asset Generator automates the image generation in a creative way. Unfortunately, this requirement is not documented on the Safari Web Content Guide sufficiently.Ĭreating icon and splash screen images for all the platforms, maintaining sizes and quality for all and adding html tags for each image can be overwhelming. You need to create a splash screen image for every resolution on Apple's Launch Screen Guidelines and html tag with media attr for each image like. You need to introduce a special html link tag with rel apple-touch-startup-image to provide a splash screen for your PWA to display when it's opened and in the background.Read more about it on Apple's Icon Guidelines and Safari Web Content Guide. You need to introduce a special html link tag with rel apple-touch-icon to provide icons for your PWA when it's added to home screen.You need to introduce custom html tags to set icons and splash screens to your PWA □ Google's Android platform respects Web App Manifest API specs, and it expects you to provide at least 2 icon sizes in your manifest file - □Īpple's iOS currently doesn't support Web App Manifest API specs. When you build a PWA with a goal of providing native-like experiences on multiple platforms and stores, you need to meet with the criteria of those platforms and stores with your PWA assets icon sizes and splash screens. ![]() Motivation - read the full blog post here Updates manifest.json and index.html files with the generated images according to Web App Manifest specs and Apple Human Interface guidelines. Automatically generates icon and splash screen images, favicons and mstile images. How can I support this project? README.mdĪutomates PWA asset generation and image declaration. How can I disable sandboxing? You saved me hours of work with pwa-asset-generator. Is there a way to introduce compression for PNG files? Running the CLI command on CI server causes Puppeteer error: "Running as root without -no-sandbox is not supported". Is there any way to re-format it? When generating PNG images, there's no compression settings. Pwa-asset-generator ✨ Motivation - read the full blog post here Features Install One-off execution Usage Module FAQ What kind of image input should I use with this library? What are the safe margins for a logo? How can I make an image smaller or larger relative to the background? How can I generate a PNG image with a transparency? How can I generate a transparent favicon, and app icons with opaque background? How can I generate both dark mode and light mode splash screen images? Are deprecated device-width and device-height media queries necessary? How can I use JSX syntax to generate the meta tags? My index.html file's format has been changed after an automated update.
0 Comments
Leave a Reply. |