added PWA support

This commit is contained in:
2020-07-02 19:23:40 +02:00
parent 7be256ca3c
commit 61fad89f24
63 changed files with 861 additions and 154 deletions

18
source/PWAGenerator.js Normal file
View File

@@ -0,0 +1,18 @@
const pwaAssetGenerator = require('pwa-asset-generator');
(async() => {
const { savedImages, htmlMeta, manifestJsonContent } = await pwaAssetGenerator.generateImages(
'./src/assets/pic.png',
"./src/assets/favicon", {
background: "linear-gradient(40deg, #f0c5cf 0%, #9bccd0 100%)",
scrape: true,
manifest: "./src/assets/manifest.json",
favicon: true,
splashOnly: false,
portraitOnly: false,
log: true
});
})();
// Access to static data for Apple Device specs that are used for generating launch images
const appleDeviceSpecsForLaunchImages = pwaAssetGenerator.appleDeviceSpecsForLaunchImages;