File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,6 @@ export const setupMeta = () => {
77 { name : 'color-scheme' , content : 'light dark' } ,
88 { name : 'format-detection' , content : 'telephone: no' } ,
99 { name : 'msapplication-tap-highlight' , content : 'no' } ,
10- // add to homescreen for ios
11- { name : 'apple-mobile-web-app-capable' , content : 'yes' } ,
12- { name : 'apple-mobile-web-app-title' , content : 'Ionic App' } ,
13- { name : 'apple-mobile-web-app-status-bar-style' , content : 'black' } ,
1410 ]
1511
1612 nuxt . options . app . head . meta = nuxt . options . app . head . meta || [ ]
Original file line number Diff line number Diff line change @@ -4,12 +4,18 @@ import { provider } from 'std-env'
44export const setupPWA = async ( ) => {
55 const nuxt = useNuxt ( )
66
7+ nuxt . options . pwa ||= { }
8+
79 if ( provider === 'stackblitz' ) {
8- ; ( nuxt . options as any ) . pwa = ( nuxt . options as any ) . pwa || { }
9- ; ( nuxt . options as any ) . pwa . icon = false
10+ nuxt . options . pwa . icon = false
1011 console . warn (
1112 'Disabling PWA icon generation as `sharp` is not currently supported on StackBlitz.'
1213 )
1314 }
15+
16+ // Generate splash screens for iOS
17+ nuxt . options . pwa . meta ||= { }
18+ nuxt . options . pwa . meta . mobileAppIOS ??= true
19+
1420 await installModule ( '@kevinmarrec/nuxt-pwa' )
1521}
Original file line number Diff line number Diff line change 11{
2- "extends" : " ./playground/.nuxt/tsconfig.json"
2+ "extends" : " ./playground/.nuxt/tsconfig.json" ,
3+ "compilerOptions" : {
4+ "types" : [
5+ " @kevinmarrec/nuxt-pwa"
6+ ]
7+ }
38}
You can’t perform that action at this time.
0 commit comments