mirror of
https://github.com/jcreek/LivingDexTracker.git
synced 2026-07-15 12:03:44 +00:00
chore(*): Add workbox service worker
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import {
|
||||
createAppleSplashScreens,
|
||||
defineConfig,
|
||||
minimal2023Preset
|
||||
} from '@vite-pwa/assets-generator/config';
|
||||
|
||||
export default defineConfig({
|
||||
headLinkOptions: {
|
||||
preset: '2023'
|
||||
},
|
||||
preset: {
|
||||
...minimal2023Preset,
|
||||
appleSplashScreens: createAppleSplashScreens(
|
||||
{
|
||||
padding: 0.3,
|
||||
resizeOptions: { fit: 'contain', background: 'white' },
|
||||
darkResizeOptions: { fit: 'contain', background: 'black' },
|
||||
linkMediaOptions: {
|
||||
log: true,
|
||||
addMediaScreen: true,
|
||||
xhtml: true
|
||||
}
|
||||
},
|
||||
['iPad Air 9.7"']
|
||||
)
|
||||
},
|
||||
images: 'static/favicon.png'
|
||||
});
|
||||
Reference in New Issue
Block a user