File tree 7 files changed +174
-27
lines changed 7 files changed +174
-27
lines changed Original file line number Diff line number Diff line change 17
17
- [x] Auto-import Ionic components and composables throughout your app
18
18
- [x] Ionic Router integration
19
19
- [x] Pre-rendering auto-configuration
20
+ - [x] Mobile meta tags
21
+ - [x] PWA support with [ ` nuxt-pwa-module ` ] ( https://github.com/kevinmarrec/nuxt-pwa-module )
20
22
- [ ] Capacitor implementation confirmed working
21
23
22
24
## Quick setup
@@ -39,6 +41,8 @@ export default defineNuxtConfig({
39
41
ionic: {
40
42
// default options - no configuration is required
41
43
integrations: {
44
+ meta: true ,
45
+ pwa: true ,
42
46
router: true ,
43
47
},
44
48
css: {
Original file line number Diff line number Diff line change 52
52
"dependencies" : {
53
53
"@ionic/vue" : " ^6.1.10" ,
54
54
"@ionic/vue-router" : " ^6.1.10" ,
55
+ "@kevinmarrec/nuxt-pwa" : " ^0.3.0" ,
55
56
"@nuxt/kit" : " ^3.0.0-rc.4" ,
56
57
"pathe" : " ^0.3.0" ,
57
58
"unimport" : " ^0.2.9"
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ export default defineNuxtConfig({
4
4
modules : [ 'nuxt-ionic' ] ,
5
5
ionic : {
6
6
// integrations: {
7
+ // meta: true,
8
+ // pwa: true,
7
9
// router: true,
8
10
// },
9
11
// css: {
Original file line number Diff line number Diff line change 28
28
</ion-list >
29
29
30
30
<ion-fab vertical =" bottom" horizontal =" end" slot =" fixed" >
31
- <ion-fab-button @click = " () => router.push(' /new') " >
31
+ <ion-fab-button router-link = " /new" >
32
32
<ion-icon :icon =" add" ></ion-icon >
33
33
</ion-fab-button >
34
34
</ion-fab >
38
38
39
39
<script setup>
40
40
import { add } from ' ionicons/icons'
41
- const router = useIonRouter ()
42
41
useHead ({
43
42
title: ' Nuxt Ionic' ,
44
43
})
You can’t perform that action at this time.
0 commit comments