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'],
})
