Added Splash Screens for PWA
This commit is contained in:
@@ -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'],
|
||||
})
|
||||
Reference in New Issue
Block a user