Added Splash Screens for PWA

This commit is contained in:
2026-07-08 00:39:12 +10:00
parent 6d0ecb19c9
commit 03bd74580f
58 changed files with 865 additions and 16 deletions
+20
View File
@@ -0,0 +1,20 @@
import { defineConfig, minimal2023Preset, createAppleSplashScreens } from '@vite-pwa/assets-generator/config'
export default defineConfig({
headLinkOptions: { preset: '2023' },
preset: {
...minimal2023Preset,
appleSplashScreens: createAppleSplashScreens({
padding: 0.3,
resizeOptions: { background: 'rgb(0, 12, 41)', fit: 'contain' },
linkMediaOptions: {
log: true,
addMediaScreen: true,
basePath: '/img/logos/',
xhtml: false,
},
png: { compressionLevel: 9, quality: 60 },
}),
},
images: ['public/img/logos/header_logo_color.svg'],
})