Skip to content

Commit

Permalink
feat: vite-pwa
Browse files Browse the repository at this point in the history
  • Loading branch information
qin-guan committed Sep 20, 2023
1 parent 9f39967 commit 4c3db2e
Show file tree
Hide file tree
Showing 5 changed files with 2,176 additions and 150 deletions.
4 changes: 4 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ export default defineNuxtConfig({

modules: [
'nuxt-vuefire',
'@vite-pwa/nuxt',
],

pwa: {
},

vuefire: {
emulators: false,

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@libsql/client": "^0.3.4",
"@nuxt/devtools": "latest",
"@paralleldrive/cuid2": "^2.2.2",
"@vite-pwa/nuxt": "^0.1.1",
"dayjs": "^1.11.9",
"dotenv": "^16.3.1",
"drizzle-kit": "^0.19.13",
Expand Down
2 changes: 2 additions & 0 deletions pages/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const appRoutes = [
]
useHeadSafe({
titleTemplate: 'SSTAA - %s',
meta: [
{
name: 'viewport',
Expand Down Expand Up @@ -56,6 +57,7 @@ const route = useRoute()
</script>

<template>
<VitePwaManifest />
<f7App
name="SSTAA"
theme="md"
Expand Down
6 changes: 6 additions & 0 deletions pages/app/index.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<script setup lang="ts">
useSeoMeta({
title: 'Home',
})
</script>

<template>
<AppHomePage />
</template>
Loading

0 comments on commit 4c3db2e

Please # to comment.